static keyword in java

The “static” keyword can be applied to an inner class (a class defined within another class), method or field (a member variable of a class). Static methods and variables are shared among all instances of a class. They can be invoked and accessed without creating new instances of the class. Example public class Student{ String […]

Share this article on

strictfp keyword in java

The “strictfp” keyword in Java is used to force the precision of floating point calculations (both float and double) in Java conform to IEEE standard, explicitly. If we don’t use strictfp keyword, the floating point precision value will be taken from the target platform’s hardware, i.e. CPU’s floating point processing capability. In other words, If […]

Share this article on
< Previous Next >