CSF203_CS202 Introduction to Java Programming END TERM_22_Head BCA (1)
CSF203_CS202 Introduction to Java Programming END TERM_22_Head BCA (1)
(b) What is importance of super and this keyword in inheritance? Illustrate with suitable 2 4
example.
(c) Define a class with name Student with suitable data members. Create two objects using 3 4
two different constructors of the class.
(d) What is the difference between an interface and an abstract class? Explain with an 3 4
example.
[4 x 5= 20]
[4 x 5= 20]
(c) Write a java program to create own exception for Negative Value Exception if the user 4 5
enter negative value.
[2 x 10= 20]