Java Interview Questions and Answers - 3
Question: 11
What is the difference between implicit and explicit type casting?
An explicit conversion is where you use syntax to tell the program to do a conversion whereas in case of implicit type casting you need not provide the data type.
Question: 12
What is meant by abstract interface?
First, an interface is abstract. That means you cannot have any implementation in an interface.
All the methods declared in an interface are abstract methods or signature of the methods.
Question: 13
How to create an immutable class?
- To create an immutable class following steps should be followed.
- Create a final class
- Set the values of properties using constructor only
- Make the properties of the class final and private
- Do not provide any setters for these properties.
Question: 14
Which class is extended by all other classes?
The Object class is extended by all other classes.
Question: 15
Can an abstract class be final?
An abstract class may not be declared as final.
Related Questions
- Java Interview Questions and Answers
- Top 1000+ Java Interview Questions and Answers Pdf
- Top 500+ Advanced Java Interview Questions 2020-2021
- Java Interview Questions and Answers for Freshers Pdf
- Java Interview Questions and Answers for Experienced Pdf
- Java Programming Basics Interview Questions
- Java OOPS Interview Questions for 3 years experienced
- Basic Java Programs Asked in Interview with Answers Pdf
- Java Programming Interview Questions and Answers
- C | C++ | Java Interview Questions and Answers
Recent Articles
A.C. Basics and Networks Quiz Questions & Answers Pdf More
Signals and Systems Quiz Questions and Answers Pdf More
Signals and Systems MCQ Questions and Answers Pdf More
Electrical Power Sources Quiz Questions & Answers Pdf More
Electromagnetic Field Theory Question Bank 2024-2025 More
Power Semiconductor Device and Integrated Circuits Questions More
April-26-2024
| Meritnotes
Signals and Systems Quiz Questions and Answers Pdf More
April-25-2024
| Meritnotes
Signals and Systems MCQ Questions and Answers Pdf More
April-24-2024
| Meritnotes
Electrical Power Sources Quiz Questions & Answers Pdf More
April-24-2024
| Meritnotes
Electromagnetic Field Theory Question Bank 2024-2025 More
April-23-2024
| Meritnotes
Power Semiconductor Device and Integrated Circuits Questions More
April-22-2024
| Meritnotes
Trending Posts
100+ Staroffice Questions and Answers Pdf More
Top 50+ Environment Multiple Choice Questions and Answers More
7000+ Metallurgical Thermodynamics and Kinetics MCQ Questions Answers More
100+ Problems on Trains Aptitude Questions and Answers More
Guptas and Post Gupta Quiz Questions and Answers More
Simplification Questions for Bank PO, SO, Clerk Exams Pdf More
April-27-2021
| Meritnotes
Top 50+ Environment Multiple Choice Questions and Answers More
August-28-2019
| Meritnotes
7000+ Metallurgical Thermodynamics and Kinetics MCQ Questions Answers More
October-13-2023
| Meritnotes
100+ Problems on Trains Aptitude Questions and Answers More
August-06-2021
| Meritnotes
Guptas and Post Gupta Quiz Questions and Answers More
August-28-2019
| Meritnotes
Simplification Questions for Bank PO, SO, Clerk Exams Pdf More
October-27-2021
| Meritnotes