[go: up one dir, main page]

0% found this document useful (0 votes)
49 views2 pages

Java ReMid Sem Mar 2019

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 2

Enroll. No.

/
KADI SARVA VISHWAVIDYALAYA
LDRP INSTITUTE OF TECHNOLOGY & RESEARCH, GANDHINAGAR
B.E. MID-SEMESTER REMEDIAL EXAMINATION March 2019
Date : 30/03/2019 Branch : CE & IT
Subject Name & Code: Object Oriented Programming using JAVA (CT 405 N)
Time : 8:30 AM to 10:00 AM Semester : IV Max. Marks : 30

Q1 A) Explain the principles of object oriented programming. 5


B) Explain the following keywords 5
This, final, super
Q2 Justify True or False. (2 marks each) 10
1. We can declare the main method of our class as private.
2. We can declare a class as Abstract without having any abstract method.
3. We can override static methods of a class.
4. We can call the constructor of a class more than once for an object.
5. We can use a default constructor of a class even if an explicit constructor is
defined.
Q3 Demonstrate constructor overloading. 10
OR
Q3 Explain how to achieve multiple inheritance with the help of program. 10

Enroll. No. /
KADI SARVA VISHWAVIDYALAYA
LDRP INSTITUTE OF TECHNOLOGY & RESEARCH, GANDHINAGAR
B.E. MID-SEMESTER REMEDIAL EXAMINATION March 2019
Date : 30/03/2019 Branch : CE & IT
Subject Name & Code: Object Oriented Programming using JAVA (CT 405 N)
Time : 8:30 AM to 10:00 AM Semester : IV Max. Marks : 30

Q1 A) Explain the principles of object oriented programming. 5


B) Explain the following keywords 5
This, final, super
Q2 Justify True or False. (2 marks each) 10
1. We can declare the main method of our class as private.
2. We can declare a class as Abstract without having any abstract method.
3. We can override static methods of a class.
4. We can call the constructor of a class more than once for an object.
5. We can use a default constructor of a class even if an explicit constructor is
defined.
Q3 Demonstrate constructor overloading. 10
OR
Q3 Explain how to achieve multiple inheritance with the help of program. 10

You might also like