Free Online Whiteboard Base64 Converter JSON Utility SmartTool PDF

Category: Core Java

What do you mean by static methods? 0

What do you mean by static methods?

If a method called from outside the class and it wasn’t declared static, it would have to be qualified (uselessly) with an object. Even when used within the class, there are good reasons to...

Difference between JRE/JVM/JDK? 0

Difference between JRE/JVM/JDK?

The “JDK” is the Java Development Kit. I.e., the JDK is bundle of software that you can use to develop Java based software. The “JRE” is the Java Runtime Environment. I.e., the JRE is...

What is a JVM? 0

What is a JVM?

JVM is Java Virtual Machine which is a run time environment for the compiled Java class files. Java Virtual Machines operate on Java byte-code, which is normally (but not necessarily) generated from Java source...

How are this() and super() used with constructors? 0

How are this() and super() used with constructors?

this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor. SuperThisDemo.java class SuperClass { int p; public SuperClass(){ System.out.println(“Super Class”); } public SuperClass(int a) {...

What restrictions are placed on method overloading? 0

What restrictions are placed on method overloading?

Two methods may not have the same name and argument list but different return types. MethodOverloadingDemo.java class Method123 { void meth() { System.out.println(“No parameter method”); } void meth(int n) { System.out.println(“The value of n...

What is the purpose of finalization? 0

What is the purpose of finalization?

The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected. Note: A class may have only one finalize method and finalizer...