RAJMATA JIJAU SHIKSHAN PRASARAK MANDAL’S
ARTS, COMMERCE AND SCIENCE COLLEGE
LANDEWADI, BHOSARI
[Link].(CS) - Sem I
Java Assignment II
1 Mark Questions
1. What is an Interface?
2. What is use of final keyword?
3. Write down any two differences between the abstract class and interface.
4. When we declare a method or class final?
4 Marks Questions
1. Write a java program to illustrate multilevel inheritance such that country is
inherited from continent. State is inherited from country. Display the place,
state, country and continent.
2. Write difference between abstract class and interface.
3. Write a JAVA program to illustrate multilevel inheritance such that state is
inherited from country. City is inherited from state. Display city, state and
country.
4. Explain 2 types of Inheritance with suitable example.
5. What is runtime polymorphism? How is it implemented in java? Give
suitable example.