You are on page 1of 3
(6 pages) Reg. No. Code No, : 41391 E Sub. Code: SMCS 31 B.Sc. (cRes) DEGRELT EXAMINATION, APRIL 2019. Third Semester Compu-er Seience — Main JAVA PROGRAMMING (For those who joined in July 2017 onwards) Time : Three hours Maximum : 75 marks PART A — (10 x 1 = 10 marks) Answer ALL questions. i Choose the correct answer 1, The method having same name as that of it’s class As th) object (d) constructor (a) class (©) finalized 2. Which method ean be defined only once in a program is? {a) static methed (c) main method (&) private method {d) finalize method can be overloaded. (a) methods (b) constructors (Q) arthmetic operators (d) alll the abeve The keyword , must be used to inherit a class. (b) this (@) extends (a) super (e) extent —————~is not a part of exception handling. fa) try (b) finally © thrown {d) catch Thread priority in Java is (a) ineger (b) float (© double (a) lone Event clags is defined in (a) java.io (b) java.lang () -avanet @ java.util aac ae ec ON lh AD halle 10. Which of these metheds will respond when you click any button by mouse? (a) Mouse Glicked () (b) Mouse Entered (} (c) mouse pressed ()} (d) All the above AWT expand (a) Applet Windowing Toolkit (b) Abstract Windowing Toolkit «) Absolute Windowing Toollir (d) Abstract Window Tool Which object can be constructed to show any member of choices in the visible window? () (b) (©) {@) Labels. Choice List Checkbox Page 3 Code No. : 41391 E 1 12 13 14, PART B— (6 5 =25 marks) Answer ALL questions, choosing either (a) or (b). (a) ) (a) (b) @ (b) Desetibe the type conversion and casting features in Java. Or What are Data types? Explain the primary types with examples. What do you understand about static and final explain. Or _ Discuss about check box in AWT. What are packages? Explain protection with examples. access Or What are interfaces? Explain. Mustrate passing parameters to applet. Or Write about event listener interfaces Code No. : 41391 E [P.T.0] Page 4 15. (a) Describe the use of flow layout. Or (b) Illustrate the Graphic features. PART C — (5 x 8 = 40 marks) Answer ALL questions choosing either (a) or (b), Explain the class fundamentals with examples. 16. (a) Or (b) Deseribe constructors with an example program, Write a jaya program to demonstrate argument passing and returning objects. 17. @) Or (b) Write a java program for multilevel hierarchy and discuss. 18. (a) Explain the features of exception handling. Or (b) How to create a thread and multiple threads? Explain. Page5 Code No, : 41391 1h Dae 20. (by (a) (b) Explain : @ Applet display method @i) HTML APPLET tag Or Describe event classes. Give examples. Explain the features of AWT controls. Or Describe AWT classes and the features of frame windows, color and fonts. Page Cade No. : 4139

You might also like