what are the different java interview questions you need to know?

5
What are the different Java Interview Question you need to know ? 1) What is the number of memory types allocated by JVM? Many types: 1. Stack 2. Heap 3. Native Method Stack 4. Program Counter Register 5. Class(Method) Area

Upload: kanchan-mahajan

Post on 31-Jul-2016

218 views

Category:

Documents


1 download

DESCRIPTION

A system is generally the components or application atmosphere in which a program operates. There are two types of system software-based and hardware-based Java provides software-based system.

TRANSCRIPT

What are the different Java Interview Question you need to know ?

1) What is the number of memory types allocated by JVM?

Many types:

1. Stack

2. Heap

3. Native Method Stack

4. Program Counter Register

5. Class(Method) Area

What is platform?

A system is generally the components or application atmosphere in which a program operates. There are two types of system software-based and hardware-based Java provides software-based system.

What is classloader?

The classloader is a subsystem of JVM that is used to fill sessions and connections.There are various kinds of classloaders e.g. Bootstrap classloader, Expansion classloader, Program classloader, Plug-in classloader etc.

What are the distinction between JD,JRE & JVM ?

JREJRE stands for Java Runtime Environment and it is one of the procedure of JVM

JVMJVM stands for Java Virtual Machine and the execution of Java byte code which is aided by the abstract machine by providing the runtime environment.

JDKJDK stands for Java Development Kit and it is existing physically and it consists of JRE + development tools.

Can we perform a system without main() method?

Yes, one of the way is static block

For more interview questions; you can learn java from the java tutorial questions given over here. Also check our Java Reviews.