SlideShare a Scribd company logo
What are the different Java interview questions 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
2) 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.
3) What gives Java its ‘write once and run anywhere’ nature?
The bytecode Java is collected to be a byte program code which is the advanced language between
source program code and device program code. This byte program code is not system particular and
hence can be fed to any system.
4) What is JIT compiler?
Just-In-Time(JIT) compiler: It is used to boost the efficiency. JIT gathers areas of the byte program
code that have similar efficiency at once, and hence cuts down the amount of time required for
collection. Here the term “compiler” represents an interpretator from the instruction set of a Java
Virtual Machine (JVM) to the training set of a particular CPU.
5) 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.
6) What is the distinction between JDK, JRE and JVM?
JRE
JRE stands for Java Runtime Environment and it is one of the procedure of JVM
JVM
JVM stands for Java Virtual Machine and the execution of Java byte code which is aided by the
abstract machine by providing the runtime environment.
JDK
JDK stands for Java Development Kit and it is existing physically and it consists of JRE +
development tools.
7) Is next, delete, exit, main or null keyword in Java?
No.
8) Will the String array of Main method is empty or null; if any arguments are not provided
on the command line?
It is empty, but not null.
9) What is difference between object oriented development language and object focused
development language?
Object focused development different languages follow all the features of OOPs except Bequest.
Examples of object oriented development different languages are JavaScript, VBScript etc.
10) What is constructor?
Constructor is just like an approach that is used to initialize situations of a product. It is invoked at
the time of object development.
11) Does constructor come back any value?
yes, that is present example (You cannot use return type yet it gives a value).
12) Is constructor inherited?
No, constructor is not inherited
13) Can you make a constructor final?
No, constructor cannot be final
14) What is static variable?
It is used to relate the typical residence of all things (that is not exclusive for each object) e.g.
company name of workers,college name of scholars etc.
It gets storage only once in education area at the time of sophistication running.
15) Why main method is static?
As it is not required for the object to instantiate a static method and if it was non static method,
object is first created by jvm and then it calls the main function and it will lead to the problem of
extra allocation of memory.
16) What is static block?
Static data member is initialized using this.
At the time of classloading it was executed before main method.
17) What is the goal of a default constructor?
The standard constructor provides the standard principles to the things. The Java compiler makes a
standard constructor only if there is no constructor in the class
18) 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.

More Related Content

PDF
What are the different java interview questions you need to know?
PPT
8 most expected java interview questions
DOCX
Java interview questions and answers for cognizant By Data Council Pune
PPT
Core Java interview questions-ppt
PDF
Top 10 Java Interview Questions and Answers 2014
PDF
Class notes(week 9) on multithreading
PDF
Java/J2EE interview Qestions
PDF
Java Interview Questions by NageswaraRao
What are the different java interview questions you need to know?
8 most expected java interview questions
Java interview questions and answers for cognizant By Data Council Pune
Core Java interview questions-ppt
Top 10 Java Interview Questions and Answers 2014
Class notes(week 9) on multithreading
Java/J2EE interview Qestions
Java Interview Questions by NageswaraRao

What's hot (19)

DOCX
Design pattern application
PDF
Java Concurrency Starter Kit
PDF
Java design pattern tutorial
PDF
Lulu.com.java.j2 ee.job.interview.companion.2nd.edition.apr.2007
PPTX
Java programming(unit 1)
PPTX
Core Java Basics
PDF
Java interview question
PDF
201 core java interview questions oo ps interview questions - javatpoint
PPTX
Java training in delhi
DOCX
Java and its features
PDF
Java interview questions
PDF
20 most important java programming interview questions
PPT
Introduction to java
PPT
00 intro to java
PDF
Core Java Tutorial
PDF
Android interview questions
PPTX
Features of JAVA Programming Language.
PPTX
Basic online java course - Brainsmartlabs
Design pattern application
Java Concurrency Starter Kit
Java design pattern tutorial
Lulu.com.java.j2 ee.job.interview.companion.2nd.edition.apr.2007
Java programming(unit 1)
Core Java Basics
Java interview question
201 core java interview questions oo ps interview questions - javatpoint
Java training in delhi
Java and its features
Java interview questions
20 most important java programming interview questions
Introduction to java
00 intro to java
Core Java Tutorial
Android interview questions
Features of JAVA Programming Language.
Basic online java course - Brainsmartlabs
Ad

Similar to What are the different java interview questions you need to know? (20)

PDF
Android interview questions
PDF
Top 100 Java Interview Questions with Detailed Answers
PDF
java basic .pdf
PDF
Java interview questions and answers
PPT
100+ Core java interview questions and Answers
PDF
Asked Java Interview Questions for fresher
PDF
JAVA VIVA QUESTIONS_CODERS LODGE.pdf
PDF
__ Java Technical round questions .pdf soo
PPT
Top 10 Interview Questions For Java
PPTX
Java J2EE Interview Questions Part-1
PPTX
Java J2EE Interview Questions Part-1
PPTX
Dev labs alliance top 20 basic java interview questions for sdet
PDF
Java Interview Questions
PPTX
Dev labs alliance top 20 basic java interview question for sdet
PPTX
Top 20 basic java interview questions for SDET
DOCX
Core java questions
DOCX
100 Java questions FOR LOGIC BUILDING SOFTWARE.docx
PDF
1669617800196.pdf
DOCX
Android interview questions
Top 100 Java Interview Questions with Detailed Answers
java basic .pdf
Java interview questions and answers
100+ Core java interview questions and Answers
Asked Java Interview Questions for fresher
JAVA VIVA QUESTIONS_CODERS LODGE.pdf
__ Java Technical round questions .pdf soo
Top 10 Interview Questions For Java
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
Dev labs alliance top 20 basic java interview questions for sdet
Java Interview Questions
Dev labs alliance top 20 basic java interview question for sdet
Top 20 basic java interview questions for SDET
Core java questions
100 Java questions FOR LOGIC BUILDING SOFTWARE.docx
1669617800196.pdf
Ad

Recently uploaded (20)

PDF
RMMM.pdf make it easy to upload and study
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharma ospi slides which help in ospi learning
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Institutional Correction lecture only . . .
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Pre independence Education in Inndia.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Computing-Curriculum for Schools in Ghana
RMMM.pdf make it easy to upload and study
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Microbial disease of the cardiovascular and lymphatic systems
Pharma ospi slides which help in ospi learning
O5-L3 Freight Transport Ops (International) V1.pdf
O7-L3 Supply Chain Operations - ICLT Program
Basic Mud Logging Guide for educational purpose
Institutional Correction lecture only . . .
human mycosis Human fungal infections are called human mycosis..pptx
Pre independence Education in Inndia.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Computing-Curriculum for Schools in Ghana

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

  • 1. What are the different Java interview questions 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 2) 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. 3) What gives Java its ‘write once and run anywhere’ nature? The bytecode Java is collected to be a byte program code which is the advanced language between source program code and device program code. This byte program code is not system particular and hence can be fed to any system. 4) What is JIT compiler? Just-In-Time(JIT) compiler: It is used to boost the efficiency. JIT gathers areas of the byte program code that have similar efficiency at once, and hence cuts down the amount of time required for collection. Here the term “compiler” represents an interpretator from the instruction set of a Java Virtual Machine (JVM) to the training set of a particular CPU. 5) What is classloader?
  • 2. 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. 6) What is the distinction between JDK, JRE and JVM? JRE JRE stands for Java Runtime Environment and it is one of the procedure of JVM JVM JVM stands for Java Virtual Machine and the execution of Java byte code which is aided by the abstract machine by providing the runtime environment. JDK JDK stands for Java Development Kit and it is existing physically and it consists of JRE + development tools. 7) Is next, delete, exit, main or null keyword in Java? No. 8) Will the String array of Main method is empty or null; if any arguments are not provided on the command line? It is empty, but not null. 9) What is difference between object oriented development language and object focused development language? Object focused development different languages follow all the features of OOPs except Bequest. Examples of object oriented development different languages are JavaScript, VBScript etc. 10) What is constructor? Constructor is just like an approach that is used to initialize situations of a product. It is invoked at the time of object development.
  • 3. 11) Does constructor come back any value? yes, that is present example (You cannot use return type yet it gives a value). 12) Is constructor inherited? No, constructor is not inherited 13) Can you make a constructor final? No, constructor cannot be final 14) What is static variable? It is used to relate the typical residence of all things (that is not exclusive for each object) e.g. company name of workers,college name of scholars etc. It gets storage only once in education area at the time of sophistication running. 15) Why main method is static? As it is not required for the object to instantiate a static method and if it was non static method, object is first created by jvm and then it calls the main function and it will lead to the problem of extra allocation of memory. 16) What is static block? Static data member is initialized using this. At the time of classloading it was executed before main method. 17) What is the goal of a default constructor? The standard constructor provides the standard principles to the things. The Java compiler makes a standard constructor only if there is no constructor in the class 18) Can we perform a system without main() method? Yes, one of the way is static block
  • 4. For more interview questions; you can learn java from the java tutorial questions given over here. Also check our Java Reviews.