Core java interview questions on encapsulation superclass and casting
1. Explain Encapsulation principle ?
2. What is difference between abstraction and encapsulation ?
3. What is data encapsulation ?
4. How you achieve encapsulation in Java ?
5. Which class is super class of every class ?
6. How to invoke super class version of Overridden method ?
7. Does class inherit constructors of its super class ?
8. What is implicit casting ?
9. What is explicit casting ?
10. What is Down-casting ?
11. What is up-casting ?
12. What do you understand by casting in Java language? What are types of casting ?
Check out all interview questions:
- All core java interview questions
- All java collections interview questions
- Face to face java Interview questions
- Telephonic java interview questions