0% found this document useful (0 votes)
10 views1 page

Java Assignment II for T.Y.B.Sc. (CS)

Uploaded by

salhat82
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Java Assignment II for T.Y.B.Sc. (CS)

Uploaded by

salhat82
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like