Category Archives

Returning Multiple values in Java

Java doesn’t support multi-value returns. We can use following solutions to return multiple values. If all returned elements are...

Returning Multiple values in Java

Java doesn’t support multi-value returns. We can use following solutions to return multiple values. If all returned elements are...

How are parameters passed in Java?

See this for detailed description. In Java, parameters are always passed by value. For example, following program prints i...

How are parameters passed in Java?

See this for detailed description. In Java, parameters are always passed by value. For example, following program prints i...

Methods in Java

A method is a collection of statements that perform some specific task and return the result to the caller....

Methods in Java

A method is a collection of statements that perform some specific task and return the result to the caller....

strictfp keyword in java

strictfp is a keyword in java used for restricting floating-point calculations and ensuring same result on every platform while...

strictfp keyword in java

strictfp is a keyword in java used for restricting floating-point calculations and ensuring same result on every platform while...

volatile keyword in Java

Using volatile is yet another way (like synchronized, atomic wrapper) of making class thread safe. Thread safe means that...

volatile keyword in Java

Using volatile is yet another way (like synchronized, atomic wrapper) of making class thread safe. Thread safe means that...

transient keyword in Java

transient is a variables modifier used in serialization. At the time of serialization, if we don’t want to save...

transient keyword in Java

transient is a variables modifier used in serialization. At the time of serialization, if we don’t want to save...

abstract keyword in java

abstract is a non-access modifier in java applicable for classes, methods but not variables. It is used to achieve...

abstract keyword in java

abstract is a non-access modifier in java applicable for classes, methods but not variables. It is used to achieve...

final, finally and finalize in Java

This is an important question concerning the interview point of view. final keyword final(lowercase) is a reserved keyword in...

final, finally and finalize in Java

This is an important question concerning the interview point of view. final keyword final(lowercase) is a reserved keyword in...

final keyword in java

final keyword is used in different contexts. First of all, final is a non-access modifier applicable only to a...

final keyword in java

final keyword is used in different contexts. First of all, final is a non-access modifier applicable only to a...

Super Keyword in Java

The super keyword in java is a reference variable that is used to refer parent class objects. The keyword...

Super Keyword in Java

The super keyword in java is a reference variable that is used to refer parent class objects. The keyword...