You are on page 1of 2
DCCA202 OL étaleb ls} 0°7 Reg.No. TI Semester B.C.A. (NEP) Degree Examination, October - 2022 COMPUTER SCIENCE Object Oriented Programming Using Java Maximum Marks : 60 Time : 2% Hours Instructions to Candidates: PA Rw Dn 8 10. I. 12. Answer all the sections. SECTION-A Answer any Four questions. Each question carries 2 marks. (4x2=8) Javais platform independent language Justify. What is the use of ‘super’ and ‘this’ keywords? What is finalization in java? What are exceptions? Which keywords are used for exception handling? What is an event? State any four event classes. What are Javabeans? State any two conventions that should be followed when they are implemented? SECTION-B Answer any Four questions, Each question carries 5 marks. Explain the different visibility modifiers in Java, What isa package? How are packages created and accessed in java? (4x5=20) Discuss Generics and illustrate with program. Write a program that catches negative exception (user defined exception). This is caused when a negative number is entered by auser. Write a program that demonstrates any two mouse events. Explain the life cycle of a thread with a neat diagram. rno. pccA202 arena a SECTION-C (4*832) Answer any Four questions. Each question carries Eight marks. used to 13, a What is constructor? Define ‘student’ class with a parameterized Constructor OT 6 initalize two instance variables - vvems.no. and stud - name. Q) b. State and two differences between string and stringBuffer class. 8) 14. Explain the following Java concepts with example programs. i. Dynamic Binding. ii. Abstract classes. i 15. a What are interfaces? Illustrate how interfaces can be used for implementing aa inheritance. 3) Differentiate between method overloading and method overriding. io 16. Explain the lifecycle of an applet. Write a program that creates two threads one thread displays numbers from 1 pe and the other thread displays numbers from 10 to 1. 17. a — Write java code to create any four GUI components. @ b. Discuss any four stream classes in Java. 4 18. Write short notes on @) a Java collections. b. Socket programming.

You might also like