Skip to content

Tag Archives: Java-keyword

Synchronized is the modifier applicable only for methods and blocks but not for the variables and for classes. There may be a chance of data… Read More
A method in a subclass is said to Override a method in its superclass if that method has a signature identical to a method in… Read More
A class describes the property and the attributes of the object.  A class contains mainly includes the following components. Modifiers: The keywords in java which… Read More
An Enum is a unique type of data type in java which is generally a collection (set) of constants. More specifically, a Java Enum type… Read More
Break keyword is often used inside loops control structures and switch statements. It is used to terminate loops and switch statements in java. When the… Read More
We use Method overloading to use a similar method for more than one time. This can be achieved by using different parameters in the signature.… Read More
The var keyword was introduced in Java 10. Type inference is used in var keyword in which it detects automatically the datatype of a variable… Read More
We prefer inheritance to reuse the code available in existing classes. In Java, Inheritance is the concept in which one class inherits the properties of… Read More
Just like any other programming language, Java has a set of keywords which are reserved and have a special meaning. In this article, we will… Read More
Protected keyword in Java refers to one of its access modifiers. The methods or data members declared as protected can be accessed from: Within the… Read More
Keywords or Reserved words are the words in a language that are used for some internal process or represent some predefined actions. These words are… Read More
Unreachable statements in Java refers to those sets of statements that won’t get executed during the execution of the program are called Unreachable Statements. These… Read More
In Java, return is a reserved keyword i.e, we can’t use it as an identifier. It is used to exit from a method, with or… Read More
abstract : It is a non-access modifier applicable for classes and methods.It is used to achieve abstraction. For more, refer abstract keyword in java enum… Read More
static is a non-access modifier in Java which is applicable for the following: blocks variables methods nested classes To create a static member(block,variable,method,nested class), precede… Read More