rlfiililt il!
il tll ililtiltfilllttil NP - 167
a
ll Semester B.C.A. Examirnation, Sept.loc l. 2A22
(NEP) eA21-22 and Onwards)
COMPUTER SCIENCE
Paper - 2.2: Object Oriented Programming using Java
Tirne '. 2/z Haurs Max. Marks : 60
lnstruction : Answer any 4 questions from each Part.
PART _ A
Answer any 4 questions. Each question carries 2 marks. (4x2=8)
1. What is a constructor ?
2. Differentiate interfaces and abstract classes.
3. What is an applet ?
4. What is an event ? IVlention types of events.
5. Mention 2 ways to create a thread.
6. What are packages in Java ?
PART -B
Answer any 4 questions. Each question carries 5 marks. (4x5=20)
7. Explain method overloading and method over-riding.
8. What is a threaO-i fxptain life cycle of a thread.
9. What is inheritance ? Explain types of inheritance in Java.
10. What is the use of layout manager in Java ? Explain all the layouts briefly.
11. Explain any 4 methods of math class.
12. What is exception handling in Java ? Explain try-catch-finally with an example.
P.T.O.
Np - 167 l tiltffiillilt ffi ilff lilti tilt ilil
PART -C
Answer any 4 questions. Each question carries I marks. (4x8=32)
13. a) Explain all the access specifiers in Java. 4
b) Explain Applet life cycle with a neat diagram. 4
14. a) What is a class ? Explain object-creation in Java. (Give example) 4
b) What is an array ? Explain arrays in Java with example. 4
15. a) Mention any 6 GUI components in Java. 3
b) Explain Switch-case with syntax and example. 5
16. a) Write a program in Java to add 2 floats, add 2 integers using rnethod
overloading. 4
b) What are I/O streams in Java ? 4
17. Wr"ite short notes on :
a) Generic programming 4
b) Collections" 4
18. a) Explain all object oriented concepts supported by Java. 4
b) What is the difference between String Class and StringBuffer class. Give
examples. 4
,*,1