Java core class (Type, File)


Download 39.72 Kb.
bet2/12
Sana01.03.2023
Hajmi39.72 Kb.
#1239065
1   2   3   4   5   6   7   8   9   ...   12
Bog'liq
interview questions

7. Encapsulation
1. What is encapsulation?
2. Features of encapsulation.
3. Advantages of encapsulation.
4. Support encapsulation in java, how to achieve, benefits of using.
5. Difference between inheritance and encapsulation.
8. Interface
1. What is interface?
2. Interface in Java
3. Multiple inheritance and interface.
4. Possible content of an interface in java.
5. Object class and interfaces.
6. Marker or tagged interfaces.
7. Differences between interface and abstract class.
8. Interface in java 1.8 and java 1.9 .: new features (YH)
9. Interface and inner classes.
9. Collections
1. Collections API review, hierarchy, contract of interfaces.
2. Collection related features in Java 8.
3. Collections framework, benefits of usage.
4. Generics in Collections Framework.
5. Benefits of iterator usage. Iterator vs Listiterator. Fail-fast and fail-safe difference.
6. Vector and ArrayList comparison.
7. How HashMap works in java?
9. ArrayList vs LinkedList.
10. Serialization
1. What is a serialization? 
2. Overview of Serialization in Java, key moments.
3. Making class serializable.
4. Serializable vs Externalizable.
5. serialVersionUID in Java. Default and specified values. How does a serialization mechanism interact with serialVersionUID?
6. Serialization and inheritance.
7. Serialization and Composition.
8. Ways to manage a serialization process.
9. Including or excluding data to be serialized.
10. Serialization and java versions, possible restrictions.
11. Where we can see usage of Serialization mechanism in java, best practice.
11. Exceptions in Java
1. What exception is?
2. Hierarchy of exceptions overview.
3. Checked vs Unchecked exceptions.
4. Important methods of Exception.
5. Java 7 and multi-catch block.
6. Custom exceptions, best practice.
7. Runtime exceptions.
8. Finally block usage, best practice.
9. Exception handling best practice.
10. Why checked exception introduced in Java?(YH)

Download 39.72 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   12




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling