transient modifier, volatile modifier, instanceof operator, strictfp keyword, loadLibrary method in Java

transient modifier: transient modifier is used in Java for variables to make their values temporary.


transient int x;

Here, value of x will not be permanent.

volatile modifier: Volatile modifier is used to let compiler know that the value of a variable can be changed. It is used generally for multithreaded programming.


volatile int x;

instanceof operator: instance of operator is used to find the run time information about the type of an object.


object instanceof type

strictfp keyword: strictfp keyword is used for precise floating point calculations in a class or a method.


strictfp class Test {


loadLibrary method: It is used to load a library. It is a part of class System.


static void loadLibrary(String filename)

Leave a Reply