Category Java

Scientech Easy welcomes you in the Java tutorial category. We have designed this tutorial series for beginners, students, and professional developers who want to learn Java programming from basic to advanced levels. Here, you will find easy-to-understand Java tutorials, practical example programs, interview questions, and quizzes.

So, let’s start to understand Java concepts one by one with these tutorials.

Throwable in Java | Throwable Class, Example

Throwable class hierarchy in Java

We know all exceptions and errors in Java are represented by classes. All these classes are organized as subclasses in a hierarchy under a superclass called Throwable. Throwable in Java is a predefined class that is the superclass of all…

Chained Exceptions in Java

Java 2, version 1.4 added a new feature chained exceptions. This feature relates one exception with another exception. The second exception explains the cause of the first exception. Chained exception in Java is a technique to handle exceptions that occur…

Throws Keyword in Java

In Java, sometimes a method may throw an exception in a program but cannot handle it due to not have an appropriate exception handling mechanism. In such a case, the programmer has to throw that exception to the caller of…

Variables in Java: Types, Examples

Memory representation of variables in Java

A variable in Java is a container that holds the value during the execution of a Java program. In other words, a variable is the name of the memory location reserved for storing value. Each variable in Java has a…

Throw Keyword in Java

You will have seen earlier in all the programs of exception handling that Java runtime system (JVM) was responsible for identifying exception class, creating its object, and throwing that object. JVM automatically throws system-generated exceptions. All those exceptions are called…