C | C++ | Java Interview Questions and Answers - 1
What is the difference between a static and non static inner class?
A non static inner class may have object instances that are associated with instances of the class’s outer class.
A static inner class does not have any object instances.
What is serializable interface?
In Java.io package there is an interface called java.io.Serializable, which is a syntactic way of serializing objects.
This interface does not define any method. The purpose of serialization is persistence, communication over sockets or RMI.
In Object serialization an object can be converted into byte stream and vice versa.
How are memory leaks possible in java?
If any object variable is still pointing to some object which is no use, then JVM will not garbage collect that object and object will remain in memory creating memory leak
What are the four corners stone’s of OOP?
- Polymorphism and
What is the difference between import and static import?
The import allows the java programmer to access classes of a package without package qualification whereas the static import feature allows to access the static members of a class without the class qualification.
The import provides accessibility to class and interface whereas static import provides accessibility to static members of the class.
- 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
7000+ Computer Networking MCQ Questions and Answers Pdf More
7000+ Microsoft Office Practical Questions and Answers Pdf More
7000+ Microsoft Office MCQ Questions and Answers Pdf More
7000+ Microsoft Office Quiz Questions and Answers Pdf More
7000+ Cyber Security Quiz Questions and Answers Pdf More
7000+ Economics Questions for UPSC Prelims Pdf Download More
TNPSC Group 2 Study Material in Tamil and English More
Web XML Interview Questions and Answers More
Top 100+ Number Series Questions for SSC, Bank Exams More
1000+ Wipro Aptitude Questions and Answers Pdf More