Java Programming and Technical

Q. What is the base class of all classes?

A. java.lang.Object

Read Solution (Total 2)

Java Other Question

Q. What is the difference between a JDK and a JVM?

A. JDK is Java Development Kit which is for development purpose and it includes execution environment also. But JVM is purely a run time environment and hence you will not be able to compile your source files using a JVM.
Q. What are the access modifiers in Java?

A. There are 3 access modifiers. Public, protected and private, and the default one if no identifier is specified is called friendly, but programmer cannot specify the friendly identifier explicitly.