Language Selection

English French German Italian Portuguese Spanish

About Tux Machines

Thursday, 13 Aug 20 - Tux Machines is a community-driven public service/news site which has been around for over a decade and a half and primarily focuses on GNU/LinuxSubscribe now Syndicate content

Search This Site

Quick Roundup

Type Title Author Replies Last Postsort icon
Story KDE's 20.08 Apps Updates: New Features land in Dolphin, digiKam, KStars, Konsole and More Roy Schestowitz 13/08/2020 - 4:38pm
Story Intel Graphics and oneAPI Roy Schestowitz 13/08/2020 - 4:05pm
Story Laravel for Programming (New Series) Roy Schestowitz 13/08/2020 - 3:55pm
Story Kali Linux and Pentesting Roy Schestowitz 13/08/2020 - 3:29pm
Story Python Leftovers Roy Schestowitz 13/08/2020 - 3:19pm
Story Games: Android, GNU/Linux and New Titles Roy Schestowitz 13/08/2020 - 2:24pm
Story today's howtos Roy Schestowitz 13/08/2020 - 2:21pm
Story Announcement of LibreOffice 6.4.6 Roy Schestowitz 1 13/08/2020 - 2:20pm
Story Love Ubuntu but want the latest KDE Plasma? KDE neon now sits atop Ubuntu 20.04 Roy Schestowitz 13/08/2020 - 1:29pm
Story Android Leftovers Rianne Schestowitz 13/08/2020 - 1:03pm

KDE's 20.08 Apps Updates: New Features land in Dolphin, digiKam, KStars, Konsole and More

Filed under
KDE
Software

The updates to KDE apps released today are many, contain a wide array of changes, and cover an impressive number of applications.

Dolphin, KDE's file explorer, for example, adds previews for more types of files and improvements to the way long names are summarized, allowing you to better see what each file is or does. Dolphin also improves the way you can reach files and directories on remote machines, making working from home a much smoother experience. It also remembers the location you were viewing the last time you closed it, making it easier to pick up from where you left off.

Read more

Intel Graphics and oneAPI

Filed under
Hardware
  • Intel Offers New Xe Graphics Details, Product Updates At 2020 Architecture Day

    This week Intel held their 2020 Architecture Day, albeit virtual due to the COVID-19 pandemic. A lot of interesting technical information was shared on both the hardware and software sides. Here are some of the interesting highlights.

  • Intel Is Using IGC In Their Windows Drivers, Internal Prototype For Mesa

    At Intel's Architecture Day this week the company was talking about work on their new Windows graphics driver that is being timed for Xe but supporting existing generations of hardware as well. One of the interesting takeaways was seeing the Windows driver is now using the open-source "IGC" back-end.

  • Intel oneAPI 1.0 "Gold" Is Coming Later This Year

    Recently I wrote about it looking like oneAPI 1.0 was lining up and now there is further confirmation of the first production release of this Intel software collection indeed coming this year.

    After oneAPI was announced in late 2018 at Intel's Architecture Day, it was released in early form last year and the various software components making up this collection of interfaces to exploit the potential of Intel's diverse hardware offerings have continued to advance.

Laravel for Programming (New Series)

Filed under
Development
  • Why Should I Use Laravel Framework
  • Composer Error while installing Laravel “Failed to decode response: zlib_decode(): data error
  • Mysql update or insert multiple rows – Raw Laravel SQL
  • Laravel update model with unique validation rule for attribute

    I have a Laravel User model whre I added unique validation rule on username and email. Now when I update my User through my Repo, and I want to re-validate my model, I get an error.

  • Laravel – Eloquent “Has”, “With”, “WhereHas”

    with() is generally used with eager loading, which is a quick way to pull related models. Basically, it means that, along with the main model, Laravel will preload the listed relationship(s). This is beneficial when you need to load additional data and want to avoid making N+1 DB bad practices. With eager loading, you run only one additional DB query instead of potentially hundreds of additional queries.

  • Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04

    This is the first time I am installing Laravel on Ubuntu and I am already running into issues, 500 errors. I have done it before, numerous times on Windows OS and never had an issue.

    This 500 internal server usually happens when your “mod_rewrite” module is not turned on.

  • Ajax Laravel 419 POST Error

    I would really be thankful if someone could help me with this. I am trying to make an Ajax call but I am getting 419 POST error.

  • Creating a Radio Button Input Field

    You want to create a radio button field for your Blade template.

  • Decoding HTML Entities to a String
  • 13 Best Laravel Helpers To Consider Using

    Laravel comes with a ton of useful global helper functions. If you haven’t used them so far, this is the best time to start. Over the years of me using the Laravel, 10 of those emerged as the most useful, making the development a lot easier. Sometimes we don’t really see how we can apply some methods until we see an example. So let’s get down to it and see the top 10 helpers I often use the most.

    These go for Laravel 5.*, however those on Laravel 6.* can bring these back using the following package https://github.com/laravel/helpers.

    You can also check out the official documentation for all laravel helper functions.

  • How to use Laravel with Socket.IO

    Websockets are cool. They are really helpful if you want to show real-time activities from your users (or perhaps some queue jobs).

    Now, if you are afraid of the word “Websockets”, don’t be. I will lay down the instructions on how you can use it and will be around to answer your questions if you need to.

    I had this challenge where I needed it to show a list of people who are currently viewing a specific URL in Laravel. So I started thinking. Part of me wanted to do a quick hack (luckily that’s not the strongest side of mine). Whilst the other wanted to build something cool, reusable and long-lasting.

  • Guide To Injecting Dependencies Into Controllers

    Laravel’s facades present a simple interface to the most useful classes in Laravel’s codebase. You can get information about the current request and user input, the session, caches, and much more.

    But if you prefer to inject your dependencies, or if you want to use a service that doesn’t have a facade, you’ll need to find some way to bring instances of these classes into your controller.

    All controller methods (including the constructors) are resolved out of Laravel’s container, which means anything you typehint that the container knows how to resolve will be automatically injected.

  • How to Upload Multiple Files via Ajax (VueJs and Laravel 5.5) - File Management

    When I first started using VueJs, it was a nightmare to find a decent tutorial on how to upload a single file using Ajax, let alone a tutorial explaining how to manage multiple files.

    I have been dealing a couple of years with file management, mostly using VueJs and Laravel, so I thought writing a tutorial like this could help a lot of developers implement one of the coolest things in applications, which is real-time asset management.

    First off, you will find many solutions online that are good but those who are early beginners will definitely struggle.

    What I will cover here is writing your frontend and backend code that will allow you to upload multiple files. Additionally, I will give you a few tricks on how to apply this stuff to different situations.

Kali Linux and Pentesting

Filed under
GNU
Linux
Security
  • Kali Linux USB Sticks

    The main aspiration of the Kali Linux bootable USB device is to serve the purpose of initiating live Kali Linux. Its essence is to provide the portability of Kali Linux, and you can carry it with you inside of your pocket. It assists in running your kali Linux in any system available near you, making kali Linux accessible to you at your accord. One of the main vantage that it provides is the customize feature. You are free to customize your very own operating system to carry it in the Kali Linux USB stick. The user just needs to follow the procedure to customize its OS image on the kali Linux USB stick. It is very system friendly, imposing no harm to the system you install it in. You just need to plug out the USB drive to get back to the original operating system of the host. Every model of kali Linux USB stick has a different chipset, making dongles compatible with the overall Kali Linux. It is rarely possible to get all features in a single USB stick as some are focused on size, while others are based on the reading/ writing cycles and speed. Here is the buying guide that can help you in selecting the best USB stick compatible with your system needs depending on its usage.

  • KALI LINUX DNS RECONNAISSANCE

    DNS Reconnaissance is an information-gathering part for a penetration testing. It is used where penetration testing is being performed. It can gather and collect all types of information on the records and target server. It does not affect any IP addresses; therefore, it is best to use for checking on or disclose the information of any network. This is only possible for those networks or organizations that do not check upon the DNS traffic. So, the types of enumeration that perform include zone transfers reverse lookups domain and host brute force standard record, enumeration, catch snooping, zoom working, and also Google Luca.

  • Metasploit in Kali Linux 2020

    The internet is full of lurkers with malicious intents who want to access networks and exploit their data while evading detection. It only makes sense to ensure a network’s security by measuring their vulnerabilities. Penetration testing or ethical hacking is how we test networks or servers for pregnable targets by pinpointing all possible breaches that a hacker might use to gain access, thus reducing security compromises. Penetration testing is often conducted through software applications, the most popular of which is Kali Linux, preferably with the Metasploit framework. Stick till the end to learn how to test a system by executing an attack with Kali Linux.

  • Post exploitation with Meterpreter

    This is an introduction to the Meterpreter payload plugin within Metasploit. In this short tutorial, we will discuss how to use it to apply post exploitation to a WINDOWS OS system once you’ve already breached it using the Eternalblue exploit. We will limit ourselves to accessing the windows system and exploring it, and all the things that we are going to do will focus on accessing information and user credentials.

    Introduction to Meterpreter

    Meterpreter is an attack payload in the Metasploit framework that lets the perpetrator control and navigate the victim computer through a command shell. It can prove to be a very versatile tool when it comes to penetration testing. It is a post-exploitation tool that is based on in-memory DLL injection, meaning it gets the injected DLL running by creating a new process that calls for the system to run the injected DLL. It can give you access to an invisible command shell on a victim machine, letting you run executables and profile networks.

    It was originally written for Metasploit 2.x and is upgraded for Metasploit 3.

  • Pen testing web applications with Metasploit’s “Wmap scanner”

    “Scanning” involves all methods and techniques for identifying live systems like networks or servers to uncover its operating system and architecture. These techniques are used to identify any vulnerable points in a network that can be exploited.

    This is a beginner’s tutorial on using the WMAP plugin incorporated in the Metasploit framework to scan for vulnerabilities in web applications. We will use the web application DVWA as a target to demonstrate the scanning process done using WAMP. DVWA is short for “damn vulnerable web application,” and the app is specially designed to used by cybersecurity novices to test and sharpen their penetration skills.

Python Leftovers

Filed under
Development
  • sphinxcontrib-spelling 5.2.1

    sphinxcontrib-spelling is a spelling checker for Sphinx-based documentation. It uses PyEnchant to produce a report showing misspelled words.

  • Python Community Interview With Bruno Oliveira

    Welcome to Real Python, Bruno. I’m glad you could join us. Let’s start in the same manner we do with all our guests: How’d you get into programming, and when did you start using Python?

  • How to use AJAX with Django

    AJAX is an acronym for Asynchronous JavaScript and XML. It is a group of inter-related technologies like JavaScript, DOM, XML, HTML, CSS etc. AJAX allows you to send and receive data asynchronously without reloading the web page.

    At some point in your project development process, you will need AJAX to execute some task. One fine example could be checking username availability on the signup form.

    We will discuss the same scenario here and will guide you through the step by step process of using AJAX with Django.

  • How to create management commands in Django

    You must have used createsuperuser command in your Django application at one or another time. If not then I am sure you must have used makemigrations or migrate commands in your project. Yes? Yes.

    So these commands, also called as management commands are used to execute some piece of code from the command line.

    In this article, We will see how to create your own command.

  • Python Development Environment on macOS Mojave & High Sierra

    While installing Python and Virtualenv on macOS Mojave & High Sierra can be done several ways, this tutorial will guide you through the process of configuring a stock Mac system into a solid Python development environment.

  • How to Learn Python for Data Science In 5 Steps

    Before we explore how to learn Python for data science, we should briefly answer why you should learn Python in the first place.

    In short, understanding Python is one of the valuable skills needed for a data science career.

    Though it hasn’t always been, Python is the programming language of choice for data science.

  • Conservancy and PyPy's great work together

    PyPy joined Conservancy in the second half of 2010, shortly after the release of PyPy 1.2, the first version to contain a fully functional JIT. In 2013, PyPy started supporting ARM, bringing its just-in-time speediness to many more devices and began working toward supporting NumPy to help scientists crunch their numbers faster. Together, PyPy and Conservancy ran successful fundraising drives and facilitated payment and oversight for contractors and code sprints.

    Conservancy supported PyPy's impressive growth as it expanded support for different hardware platforms, greatly improved the performance of C extensions, and added support for Python 3 as the language itself evolved.

  • A new chapter for PyPy: Transitioning away from a Charitable Model

    PyPy has been a member project of Software Freedom Conservancy since 2010 and although it's been a mutually successful partnership, nothing lasts forever — especially in software. Today, Conservancy and PyPy announce that they are winding down their ten year relationship. PyPy will remain free software, but the community's structure and organizational underpinnings will change. Conservancy provides a fiscal and organizational home for projects that find the freedoms and assurances that come along with a charitable home advantageous for their community goals. While this framework was a great fit for the early PyPy community, that community has changed such that this is no longer the case. PyPy's leadership are exploring non-charitable options for its next phase of growth.

  • PSF GSoC students blogs: Week 9
  • PSF GSoC students blogs: Week 11 Check in!
  • PSF GSoC students blogs: Weekly Check In - 10

Games: Android, GNU/Linux and New Titles

Filed under
Gaming
  • How to Find New and Exciting Games to Play on Android
  • 16 of the Best Free Games For Linux

    “Free” and “Linux” go hand in hand beautifully, like chips and a milkshake, and even though Linux isn’t widely seen as a gaming platform, there is a veritable wealth of free games you can get for it if you look in the right places. That’s in large part thanks to unpaid, open-source developers, who collaborate to bring classics (and new games) all together in Linux.

  • Quirky comedy point and click adventure 'Sol 705' is out now for Linux PC

    Sol 705, a point and click adventure that pays homage to the classics from the likes of Lucas Arts, Sierra is out now and it's added Linux PC support too.

    Developed by Land Patricio and Space Indie Studios, it appears this is a crowdfunded title that slipped through the cracks as we completely missed the successful Kickstarter from 2018 where the developer pulled in over ten thousand dollars. While it's designed like the classics, it does have plenty of modern touches from a hint system to voice acting for some of the seriously varied cast.

  • The Bomber Crew team announced Space Crew and it's coming to Linux PC

    Did you enjoy Bomber Crew? Runner Duck's strategic simulation game was a wonderful release from 2017 and they're now going aiming to go further with Space Crew.

    This was actually announced back in June, although at that point the platforms it was launching on was not confirmed. Towards the end of July, I spotted Linux appearing in the system requirements and today the developer emailed back with a firm confirmation, "Yes, we are planning on Space Crew supporting Linux at launch.".

  • Religion creation auto-battler Godhood has launched after a rough time for Abbey Games

    After going through funding and development troubles, Abbey Games have now launched the 1.0 release of their religion creation auto-battler Godhood.

    Quite a relaxing and laid-back experience that blends together a little bit of many things. You construct a religion, build up a little town and engage in hands-off turn-based battles that do everything for you so you get to sit back and watch how it all unfolds. Quite a different take on the auto-battling seen in the likes of Dota Underlords that's for sure.

  • The free Rise of Avalon expansion for Albion Online is live

    Free to play and now much bigger, Albion Online has a brand new expansion out with Rise of Avalon and there's lots of new goodies to play through.

    One of the biggest additions to Albion Online since it began, this brings the Roads of Avalon, a big network of magical pathways that bring new ways to travel, transport and engage in combat allowing you to explore the Wilderness of Avalon. Another huge addition are Corrupted Dungeons, giving Solo players something fun that mixes PvE and PvP invasions together in randomized dungeons. There's also fifteen powerful new Avalonian weapons to find.

  • Streets of Rogue gets a big bug-fix update as work continues on a sequel

    Streets of Rogue, one of my absolute favourite indie games has a new update out as work continues to find and fix every possible bug, plus a few new bits were added.

    Before getting into the juice of the update though, with the developer previously confirming a sequel is in the works (that should also come to Linux) they've briefly mentioned it again now. In the update notes, they mentioned how they're building up the tech needed for the sequel and that it's going "really smoothly.". This work will allow for a much bigger and more open world, which sounds pretty exciting!

today's howtos

Filed under
HowTos

Announcement of LibreOffice 6.4.6

Filed under
LibO

The Document Foundation announces the availability of LibreOffice 6.4.6, the 6th minor release of the LibreOffice 6.4 family, targeted at all users relying on the best free office suite ever for desktop productivity. LibreOffice 6.4.6 includes bug fixes and improvements to document compatibility and interoperability with software from other vendors.

LibreOffice 6.4.6 is optimized for use in every environment, even by more conservative users, as it now includes several months of work on bug fixes. Users of LibreOffice 6.3.6 and previous versions should update to LibreOffice 6.4.6, as this is now the best choice in term of robustness for their productivity needs.

For enterprise class deployments, TDF strongly recommends sourcing LibreOffice from one of the ecosystem partners, to get long-term supported releases, dedicated assistance, custom new features and other benefits, including SLAs (Service Level Agreements): https://www.libreoffice.org/download/libreoffice-in-business/. Also, the work done by ecosystem partners flows back into the LibreOffice project, and this represents an advantage for everyone.

Read more

Love Ubuntu but want the latest KDE Plasma? KDE neon now sits atop Ubuntu 20.04

Filed under
KDE

Merging together a solid Ubuntu 20.04 LTS foundation and the latest KDE Plasma packages, KDE neon has a fresh rebase out for you to try out.

So what exactly is it? Is it another Linux distribution? Well, sort of. Not quite. It's just the long-term supported versions of Ubuntu with the freshest releases of the KDE Plasma desktop environment (plus Qt and other KDE software) stuck on top of it. They said it's for people who want "the latest and greatest from the KDE community but the safety and stability of a Long Term Support release". So unlike Kubuntu, the official Ubuntu KDE distribution variant, you're not stuck to the main version of Plasma it launches with.

Read more

Tumbleweed Snapshots bring Kernel 5.8, Hypervisor FS Support with Xen Update

Filed under
SUSE

This week openSUSE Tumbleweed delivered four snapshots that brought in a new mainline kernel for the distribution as well as a package for Xen that removes previous requirements of parsing log data or writing custom hypercalls to transport the data, and custom code to read it.

The latest snapshot, 20200810, brought the 5.8.0 Linux Kernel that had a fix for missing check in vgacon scrollback handling and an additional commit from the previous version improves load balancing for SO_REUSEPORT, which can be used for both TCP and UDP sockets. The GNU Compiler Collection 10 update includes some Straight Line Speculation mitigation changes. GNOME had a few package updates in the snapshot with updates to accerciser 3.36.3, web browser epiphany 3.36.4 and GNOME games gnome-mines 3.36.1 and quadrapassel 3.36.04. The snapshot is trending at a rating of 84, according to the Tumbleweed snapshot reviewer.

Read more

Qt Creator 4.13 RC released

Filed under
KDE

We are happy to announce the release of Qt Creator 4.13 RC !

For an overview of the improvements in Qt Creator 4.13, please head over to the first Beta blog post.

The opensource version is available on the Qt download page under "Pre-releases", and you find commercially licensed packages on the Qt Account Portal. Qt Creator 4.13 RC is also available under Preview > Qt Creator 4.13.0-rc1 in the online installer. Please post issues in our bug tracker. You can also find us on IRC on #qt-creator on chat.freenode.net, and on the Qt Creator mailing list.

You can read the Qt Creator Manual in Qt Creator in the Help mode or access it online in the Qt documentation portal.

Read more

Also: Qt Creator 4.13 RC Released With Initial Meson Integration, Updated C++ Code Model

CAELinux 2020 Released: A Linux Distro For Computer-Aided Engineering

Filed under
Linux
Ubuntu

After almost half and year, Joël Cugnoni has announced the new 2020 version of CAELinux. The latest CAELinux 2020 is based on the long-term Xubuntu 18.04 release, and comes with several new tools and updated CAELinux core packages.

Focusing on computer-aided design (CAD), CAELinux is a LiveDVD Linux distribution, which you can boot directly from DVD or USB flash drive without installation.

Read more

Our favorite open source writing tools

Filed under
OSS

Writing is one of the primary ways we communicate, and it's endlessly fascinating to see the different ways writers work. I can hardly imagine writing before computers and their ability to instantly edit and rearrange the words I've typed onto a screen. Likewise, I wonder whether people who started out writing on a typewriter process their thoughts differently, even on a modern word processor, or whether their workflow has changed and adapted because of these new tools.

We asked some of our correspondents how they get their thoughts into comprehensible words and what open source tools they prefer while doing so. As you might expect, we got different answers from everyone who answered.

Read more

Lightweight Linux Distros for Old Laptop (2020)

Filed under
Linux

Do not discard that old PC or laptop yet. You can use a lightweight Linux distro to make them as good as new. Some of these Linux distros are specifically for use in older machines.

You can use any of the lightweight Linux distros and bring your old machine back to life. In as much we focus on the old distros, we do have some new releases that do not require many resources that can re-invent your old computers.

Read more

The 40 Best Raspberry Pi Blogs For The Pi Geeks

Filed under
Linux

If you are a Raspberry Pi Geek, then this article about the Raspberry Pi blogs is sure to take the nerves out of you. It is often that you get stuck with a new project and crave for the accurate tutorials. Also, some beginners get confused about where to start and wish they had a resource to start with. To help with that, many Raspberry Pi enthusiasts like you have created blogging sites that are being updated regularly. In this modern world, with the emerging importance of IoT and machine learning, Raspberry Pi is a must to learn.

In this article, I am going to talk about 40 best Raspberry Pi blogs you should really look into. If you are thinking of starting a new project or making your own invention using the Raspberry Pi, you are ought to need these blog sites.

Read more

Audiocasts/Shows: Destination Linux, FLOSS Weekly, Unfettered Freedom, TLLTS and Noodlings

Filed under
GNU
Linux
  • Destination Linux 186: Quality Control in Linux, System76 Keyboard & DLN Game Fest!

    00:00 Intro
    00:44 Welcome to DL186
    01:06 Lower Deck
    01:48 What Ryan has been up to
    02:46 What Noah has been up to
    07:11 What Michael has been up to
    10:05 Digital Ocean https://do.co/dln
    11:34 Community Feedback: Linux Mint’s System Reports
    12:47 Noah’s suggestion to the Linux Foundation to help with Tech Support in Linux
    13:59 What does the Linux Foundation do?
    16:33 Send Us Feedback: comments@destinationlinux.org
    17:06 News: System76 Reimagining The Keyboard
    22:26 Security Advisory: Snapdragon Vulnerabilities (Android Users Need To Update)
    25:21 Bitwarden https://bitwarden.com/dln
    26:56 Topic of the Week: Quality Control in Linux (DLN Forum Thread)
    41:21 DLN Game Fest on August 30th at 4PM Eastern!
    43:48 Linux Gaming: Camp Canyonwood
    45:18 Tip of the Week: /boot
    47:17 ShellShock Added to DLN Game Fest by Patron Request
    48:19 Software Spotlight: ProtonMail Bridge
    48:52 Become a Patron of Destination Linux
    50:15 DLN Store https://dlnstore.com
    50:39 Join the DLN Community! (Ryan made Noah give up on the \being hip\ stuff this week lol)
    52:14 More Great Content at DestinationLinux.Network
    52:33 Journey itself . . .
    52:39 Preview of the Patron Post Show

  • FLOSS Weekly 591: PLATO & The Rise of Cyberculture - Programmed Logic for Automatic Teaching Operations

    P.L.A.T.O. is an acronym for Programmed Logic for Automatic Teaching Operations. Before the internet, there was the PLATO system which was not only computer-based education but, surprisingly, the first online community. Doc Searls talks with Shawn Powers and Brian Dear who was the author of Friendly Orange Glow which is the first book on PLATO. The book discusses the importance of PLATO. PLATO was the original incubator for social computing: instant messaging, chat rooms, message forums, the world's first online newspaper, and so much more. PLATO also created flat-panel gas plasma displays and was one of the first systems with touch panels built-in to the screen. They discuss how PLATO and the rise of the cyberculture and the internet were due to the "Hacker Method" an agreement among early developers to share and have open code.

  • Unfettered Freedom, Ep. 2 - FSF Elects President, Emacs 27.1, Mozilla Layoffs, HBO Drops Linux

    Unfettered Freedom is a video podcast that focuses on news and topics about GNU/Linux, free software and open source software. On this freedom-packed episode: 0:00 - Intro 1:27 - Free Software Foundation finally elects a new president.

  • The Linux Link Tech Show Episode 870

    samsung chromebook review, developing on chromebook, arduino, keypad programming

  • Noodlings | BIOS Games Serving the NDI™ Plugin

    18 Episodes… 18 is a fun number. Divisible by 2, 3, 6 and 9. The age you can vote in the United States.

Java Programming

Filed under
Development
  • Java date format

    Date value needs to format for various programming purposes. One of the essential reasons to format the date is to represent the date value in a human-readable format. Many classes exist in Java to format the date value. DateTimeFormatter and SimpleDateFormat are two of them. These classes can be used to format date values in different ways. How these two classes can be used to format the date in Java is explained in this tutorial.

  • Java Enum Tutorial

    Java enum is a special Java type that defines by a Java class. It is also called the Java enumeration type. It is introduced in Java version 5 first, which is mainly used to define the collection of constants. The compile type of safety is ensured by using the enum type. So, when all possible values of the variable are known before compile time, then it is better to use enum type. It defines a class that always extends from java.lang.Enum. How enum type can be declared and used in Java are shown in this tutorial.

  • Java Abstract Class

    The concept of the abstraction is to highlight the task of the object instead of highlighting, “how the object does the task”. This type of concept can be implemented by using two ways in Java. These are the abstract class and interface. Abstract class contains the keyword abstract. This class can not be initiated like other normal classes, but a subclass can be derived by inheriting the abstract class. The features of the abstract class can be accessed by creating the object of the subclass. An abstract class can also contain the constructor that can be accessed by creating the object of the subclass class. How you can use an abstract class in Java is shown in this tutorial.

  • Java exception handling

    When the normal flow of the program execution interrupts for any error, then it is called an exception. This type of event can be handled by using a try-catch-finally block. An exception is an object that is used to catch the error and run the statement based on the error condition that is called exception handling. Mainly two types of error are handled by exception handling. These are compiled time errors and run-time errors. The run-time errors are handled by exception handling. How you can handle exceptions in Java is explained in this tutorial.

Syndicate content