SlideShare a Scribd company logo
1 of 4
Download to read offline
Top 30 Java Phone Interview Questions for Fresher
( 1 To 2 Years Experienced )
In this Java interview questions blog, you will find the most asked questions and answers
for Java interviews. Practicing these questions will help crack the interview. So, let's get
started.
1. List down the main features of Java.
• Object-Oriented programming language
• Easy to learn
• Distributed
• Multithreaded
• Platform-independent
• Robust
• Portable
• Secure
2. What is an Array?
An Array is a container object that contains a specific number of values of a single data type.
3. Can you declare an Array without Array size?
No, you cannot declare an Array without Array size.
4. Explain the meaning of Object-Oriented Programming.
Object-oriented programming is based on the concepts of 'objects or 'data' instead of
functions and logic.
5. What are the fundamental OOP concepts?
There are four OOPS concepts- Inheritance, Encapsulation, Polymorphism, and Abstraction.
6. What is multithreaded programming?
In multithreaded programming, multiple threads run to execute the task simultaneously.
7. Why is Java String immutable?
The Java String is immutable for several reasons: synchronization and concurrency,
performance, security, caching, and class loading.
8. What is abstraction?
Abstraction is a concept of hiding implementation details from the user and giving access to
only key characteristics.
9. Explain the Inheritance concept?
Inheritance allows one java class to inherit the properties or behavior of another class.
Top 30 Java Phone Interview Questions for Fresher
( 1 To 2 Years Experienced )
10. What is an Object in Java?
The object is an instance or member of a Java class. It contains a real-world object's basic
properties, identity, and behavior.
11. When to use abstract class and interface?
Abstract classes are primarily used for closely related objects, while interfaces are used to
provide a common functionality to unrelated classes.
12. What is the singleton class in Java?
A class that can have one instance at any given time in one JVM is a singleton class.
13. What is the difference between List and Set?
A list is an ordered sequence that maintains the elements in order of insertion. On the other
hand, the Set is an unordered collection where elements are not maintained.
14. What do you mean by the method overloading?
If a class consists of multiple methods of the same name but different parameters, it means
method overloading.
15. Explain method overriding in Java?
In Java, method overriding happens when the subclass (child class) method is similar to the
parent class.
16. Can you override the overloaded method in Java?
Yes, you can override the overloaded method.
17. Can you overload the main() method?
Yes, you can overload the main method.
18. Explain the difference between Collection and Collections.
A Collection is an interface, while Collections is a utility class.
19. Differentiate between constructor and method?
The constructor helps to initialize an object, while the method helps exhibit an object's
functionality.
20. What is the difference between String, StringBuilder, and StringBuffer?
The string is immutable in Java, while StringBuilder and StringBuffer are mutable classes.
21. What are static and non-static methods?
Top 30 Java Phone Interview Questions for Fresher
( 1 To 2 Years Experienced )
Static methods belong to a class, whereas non-static methods belong to an object.
22. State the difference between Error and Exception?
Error is generated due to a lack of system resources. On the other hand, the exception is
caused due to problem in code.
23. How method overloading and method overriding are different?
In method overloading, methods have the same name but different signatures while in method
overriding, methods have the same name and signature.
24. What is synchronization in Java?
Synchronization is a technique where only one thread can be used at a time to complete the
task.
25. What are the ways to create threads in Java?
Threads in Java can be created by
a. By implementing a Runnable interface
b. By extending the Thread class
26. Define the garbage collection of Java?
Garbage collection is a process where the programs automatically perform memory
management.
27. Why use the final keyword in Java?
The final keyword in Java helps create constants and prevents inheritance and methods from
being overridden.
28. What is JVM?
Java virtual machine or JVM compiles and interprets the java code.
29. What is cloning in Java?
Cloning is a method in which an exact copy of an object is created.
30. How do ArrayLists and LinkedLists differ?
ArrayList implements only List, whereas LinkedList implements both List and Queue.
So, this brings us to the close of the top 30 Java interview questions. These questions will
help in preparation for Java interview.
Top 30 Java Phone Interview Questions for Fresher
( 1 To 2 Years Experienced )

More Related Content

What's hot (20)

Introduction to Java 8
Introduction to Java 8Introduction to Java 8
Introduction to Java 8
 
Fundamentals of JAVA
Fundamentals of JAVAFundamentals of JAVA
Fundamentals of JAVA
 
Collections in Java Notes
Collections in Java NotesCollections in Java Notes
Collections in Java Notes
 
this keyword in Java.pptx
this keyword in Java.pptxthis keyword in Java.pptx
this keyword in Java.pptx
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 
Java Multithreading
Java MultithreadingJava Multithreading
Java Multithreading
 
Java - Exception Handling Concepts
Java - Exception Handling ConceptsJava - Exception Handling Concepts
Java - Exception Handling Concepts
 
Java platform
Java platformJava platform
Java platform
 
Packages in java
Packages in javaPackages in java
Packages in java
 
Final keyword in java
Final keyword in javaFinal keyword in java
Final keyword in java
 
Finalize() method
Finalize() methodFinalize() method
Finalize() method
 
Java Garbage Collection - How it works
Java Garbage Collection - How it worksJava Garbage Collection - How it works
Java Garbage Collection - How it works
 
Structure of java program diff c- cpp and java
Structure of java program  diff c- cpp and javaStructure of java program  diff c- cpp and java
Structure of java program diff c- cpp and java
 
Java 9 New Features
Java 9 New FeaturesJava 9 New Features
Java 9 New Features
 
Grails Spring Boot
Grails Spring BootGrails Spring Boot
Grails Spring Boot
 
Java basics
Java basicsJava basics
Java basics
 
Interview Question & Answers for Selenium Freshers | LearningSlot
Interview Question & Answers for Selenium Freshers | LearningSlotInterview Question & Answers for Selenium Freshers | LearningSlot
Interview Question & Answers for Selenium Freshers | LearningSlot
 
Java 9 Features
Java 9 FeaturesJava 9 Features
Java 9 Features
 
WHAT IS ABSTRACTION IN JAVA
WHAT IS ABSTRACTION IN JAVAWHAT IS ABSTRACTION IN JAVA
WHAT IS ABSTRACTION IN JAVA
 
Core java
Core javaCore java
Core java
 

Similar to Top 30 Java Phone Interview Questions Answers for Freshers, 1 to 2 Years Experienced.pdf

Java Interview Questions For Freshers
Java Interview Questions For FreshersJava Interview Questions For Freshers
Java Interview Questions For Fresherszynofustechnology
 
Top 371 java fa qs useful for freshers and experienced
Top 371 java fa qs useful for freshers and experiencedTop 371 java fa qs useful for freshers and experienced
Top 371 java fa qs useful for freshers and experiencedGaurav Maheshwari
 
Java Faqs useful for freshers and experienced
Java Faqs useful for freshers and experiencedJava Faqs useful for freshers and experienced
Java Faqs useful for freshers and experiencedyearninginjava
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview QuestionsKuntal Bhowmick
 
JAVA VIVA QUESTIONS_CODERS LODGE.pdf
JAVA VIVA QUESTIONS_CODERS LODGE.pdfJAVA VIVA QUESTIONS_CODERS LODGE.pdf
JAVA VIVA QUESTIONS_CODERS LODGE.pdfnofakeNews
 
Java interview questions
Java interview questionsJava interview questions
Java interview questionsSoba Arjun
 
Java interview questions and answers for cognizant By Data Council Pune
Java interview questions and answers for cognizant By Data Council PuneJava interview questions and answers for cognizant By Data Council Pune
Java interview questions and answers for cognizant By Data Council PunePankaj kshirsagar
 
Probable questions for semester exam
Probable questions for semester examProbable questions for semester exam
Probable questions for semester examKuntal Bhowmick
 
Android interview questions
Android interview questionsAndroid interview questions
Android interview questionssatish reddy
 
Android interview questions
Android interview questionsAndroid interview questions
Android interview questionssatish reddy
 
Top 20 Core Java Interview Questions & Answers for Selenium Automation Testin...
Top 20 Core Java Interview Questions & Answers for Selenium Automation Testin...Top 20 Core Java Interview Questions & Answers for Selenium Automation Testin...
Top 20 Core Java Interview Questions & Answers for Selenium Automation Testin...AnanthReddy38
 
Java interview faq's
Java interview faq'sJava interview faq's
Java interview faq'sDeepak Raj
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questionssoniajessica2
 
Java questions for interview
Java questions for interviewJava questions for interview
Java questions for interviewKuntal Bhowmick
 

Similar to Top 30 Java Phone Interview Questions Answers for Freshers, 1 to 2 Years Experienced.pdf (20)

Java Interview Questions For Freshers
Java Interview Questions For FreshersJava Interview Questions For Freshers
Java Interview Questions For Freshers
 
Top 371 java fa qs useful for freshers and experienced
Top 371 java fa qs useful for freshers and experiencedTop 371 java fa qs useful for freshers and experienced
Top 371 java fa qs useful for freshers and experienced
 
Java Faqs useful for freshers and experienced
Java Faqs useful for freshers and experiencedJava Faqs useful for freshers and experienced
Java Faqs useful for freshers and experienced
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
 
JAVA VIVA QUESTIONS_CODERS LODGE.pdf
JAVA VIVA QUESTIONS_CODERS LODGE.pdfJAVA VIVA QUESTIONS_CODERS LODGE.pdf
JAVA VIVA QUESTIONS_CODERS LODGE.pdf
 
Core_Java_Interview.pdf
Core_Java_Interview.pdfCore_Java_Interview.pdf
Core_Java_Interview.pdf
 
Java interview question
Java interview questionJava interview question
Java interview question
 
Java interview questions
Java interview questionsJava interview questions
Java interview questions
 
Java interview questions and answers for cognizant By Data Council Pune
Java interview questions and answers for cognizant By Data Council PuneJava interview questions and answers for cognizant By Data Council Pune
Java interview questions and answers for cognizant By Data Council Pune
 
Probable questions for semester exam
Probable questions for semester examProbable questions for semester exam
Probable questions for semester exam
 
Android interview questions
Android interview questionsAndroid interview questions
Android interview questions
 
Android interview questions
Android interview questionsAndroid interview questions
Android interview questions
 
Top 20 Core Java Interview Questions & Answers for Selenium Automation Testin...
Top 20 Core Java Interview Questions & Answers for Selenium Automation Testin...Top 20 Core Java Interview Questions & Answers for Selenium Automation Testin...
Top 20 Core Java Interview Questions & Answers for Selenium Automation Testin...
 
Java interview faq's
Java interview faq'sJava interview faq's
Java interview faq's
 
1
11
1
 
Java_Interview Qns
Java_Interview QnsJava_Interview Qns
Java_Interview Qns
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
 
Core java questions
Core java questionsCore java questions
Core java questions
 
Java questions for interview
Java questions for interviewJava questions for interview
Java questions for interview
 
Core java questions
Core java questionsCore java questions
Core java questions
 

Recently uploaded

QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesSHIVANANDaRV
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxakanksha16arora
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 

Recently uploaded (20)

QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

Top 30 Java Phone Interview Questions Answers for Freshers, 1 to 2 Years Experienced.pdf

  • 1. Top 30 Java Phone Interview Questions for Fresher ( 1 To 2 Years Experienced ) In this Java interview questions blog, you will find the most asked questions and answers for Java interviews. Practicing these questions will help crack the interview. So, let's get started. 1. List down the main features of Java. • Object-Oriented programming language • Easy to learn • Distributed • Multithreaded • Platform-independent • Robust • Portable • Secure 2. What is an Array? An Array is a container object that contains a specific number of values of a single data type. 3. Can you declare an Array without Array size? No, you cannot declare an Array without Array size. 4. Explain the meaning of Object-Oriented Programming. Object-oriented programming is based on the concepts of 'objects or 'data' instead of functions and logic. 5. What are the fundamental OOP concepts? There are four OOPS concepts- Inheritance, Encapsulation, Polymorphism, and Abstraction. 6. What is multithreaded programming? In multithreaded programming, multiple threads run to execute the task simultaneously. 7. Why is Java String immutable? The Java String is immutable for several reasons: synchronization and concurrency, performance, security, caching, and class loading. 8. What is abstraction? Abstraction is a concept of hiding implementation details from the user and giving access to only key characteristics. 9. Explain the Inheritance concept? Inheritance allows one java class to inherit the properties or behavior of another class.
  • 2. Top 30 Java Phone Interview Questions for Fresher ( 1 To 2 Years Experienced ) 10. What is an Object in Java? The object is an instance or member of a Java class. It contains a real-world object's basic properties, identity, and behavior. 11. When to use abstract class and interface? Abstract classes are primarily used for closely related objects, while interfaces are used to provide a common functionality to unrelated classes. 12. What is the singleton class in Java? A class that can have one instance at any given time in one JVM is a singleton class. 13. What is the difference between List and Set? A list is an ordered sequence that maintains the elements in order of insertion. On the other hand, the Set is an unordered collection where elements are not maintained. 14. What do you mean by the method overloading? If a class consists of multiple methods of the same name but different parameters, it means method overloading. 15. Explain method overriding in Java? In Java, method overriding happens when the subclass (child class) method is similar to the parent class. 16. Can you override the overloaded method in Java? Yes, you can override the overloaded method. 17. Can you overload the main() method? Yes, you can overload the main method. 18. Explain the difference between Collection and Collections. A Collection is an interface, while Collections is a utility class. 19. Differentiate between constructor and method? The constructor helps to initialize an object, while the method helps exhibit an object's functionality. 20. What is the difference between String, StringBuilder, and StringBuffer? The string is immutable in Java, while StringBuilder and StringBuffer are mutable classes. 21. What are static and non-static methods?
  • 3. Top 30 Java Phone Interview Questions for Fresher ( 1 To 2 Years Experienced ) Static methods belong to a class, whereas non-static methods belong to an object. 22. State the difference between Error and Exception? Error is generated due to a lack of system resources. On the other hand, the exception is caused due to problem in code. 23. How method overloading and method overriding are different? In method overloading, methods have the same name but different signatures while in method overriding, methods have the same name and signature. 24. What is synchronization in Java? Synchronization is a technique where only one thread can be used at a time to complete the task. 25. What are the ways to create threads in Java? Threads in Java can be created by a. By implementing a Runnable interface b. By extending the Thread class 26. Define the garbage collection of Java? Garbage collection is a process where the programs automatically perform memory management. 27. Why use the final keyword in Java? The final keyword in Java helps create constants and prevents inheritance and methods from being overridden. 28. What is JVM? Java virtual machine or JVM compiles and interprets the java code. 29. What is cloning in Java? Cloning is a method in which an exact copy of an object is created. 30. How do ArrayLists and LinkedLists differ? ArrayList implements only List, whereas LinkedList implements both List and Queue. So, this brings us to the close of the top 30 Java interview questions. These questions will help in preparation for Java interview.
  • 4. Top 30 Java Phone Interview Questions for Fresher ( 1 To 2 Years Experienced )