Java FAQs

Posts tagged Java FAQs

Exception vs Error in Java

I will tell you here what are the differences between Exception and Error in Java. There are mainly three important categories of Throwable: Error – something severe enough…

What is Class.forName() in Java

The Class.forName() in Java or java.lang.Class.forName(String className) method returns the Class object associated with the class or interface with the given string name.

Local Class in Java

Local class or classes in Java are defined in a block, which is a group of zero or more statements between balanced braces. We typically find local classes…

What is static import in Java?

We will discuss about static import in Java. The static import construct allows unqualified access to static members without inheriting from the type containing the static members. Instead,…

Wrapper Class in Java

I will tell you here what is wrapper class in Java. The primitive data types are not objects; so they do not belong to any class; they are…

What is strictfp keyword in Java?

We will discuss about strictfp keyword in Java. strictfp is a keyword in the Java programming language that restricts floating-point calculations to ensure portability. The strictfp was introduced…