Uses of Return keyword in Java | Get value, Statement & Examples

Java return keyword is used in a method to get return value after execution is completed. In the method when the return statement executed, that time program will return to the code that invoked it. It’s not a necessary method to have a return statement. For that, the method must be declared void and it Read More…



Java static variable in Method and Class with example

Which Java variable is declared with “static keyword” called a Java static variable. Static Variable is a class-level variable. It’s initialized at class load and a single copy has created and shared among all the instances of the class. Static Variables are good for memory management. It’s created when the program starts and destroyed when Read More…


Static keyword in Java | Method, Variable, Block, Nested Class with Examples

What is Static Keyword in java? A Static keyword is used in java for application memory management. You can apply static keywords in variables, methods, blocks, and nested classes. Static means that you don’t have to create an instance of the class to use the methods or variables associated with the class.  So static keyword Read More…


Final keyword in Java | Variable, Method, Class with examples

The final keyword in java is used to create a Constant Variable, Prevent method overloading and prevent Class Inheritance, etc. Java Final keyword restrict to the user and it can apply only to: – Variables Methods and Class Java Final Variable Defining a variable as a Final makes it constant, which means you can change (modified) Read More…


This keyword in Java | Method, Reference, constructor, a​nd examples

What is the “This” Keyword? Java “this” Keyword works as a reference to the current Object in the program. It can be used inside the Method or constructor of Java Class. Where use This keyword in Java? Here is list of this keyword can used to:- Refer instance variable of the current class. Invoke or initiate current class constructor. Read More…