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
Access modifiers in Java help to restrict the scope of a class, constructor, variable, method, or data member. There are four types of access modifiers… 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
Keywords refer to the reserved set of words of a language. These are used for some predefined actions. abstract: It is a non-access modifier applicable… Read More
The static keyword in Java is mainly used for memory management. The static keyword in Java is used to share the same variable or method… Read More

Start Your Coding Journey Now!