Free Online Whiteboard Base64 Converter JSON Utility SmartTool PDF

Category: Javaskool Category

What is Scanner class? 0

What is Scanner class?

Scanner is a class in java.util package used for obtaining the input of the primitive types like int, double etc. and strings. It is the easiest way to read input in a Java program,...

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...