Manghanmal Udharam College of Commerce, Pimpri Pune-411017
Term end Examination T.Y.Bca Sem-V
Subject:- Java Programming
Date:- /09/2014 Duration 2 hours
Time:- 12.30 to 02.30pm Total -60 marks
Instructions:- 1) All questions compulsory for 12 marks. 2) Assume suitable data if necessary.
Q.1 Attempt any six of the following. 12
a. Write any two features of Object Oriented Language. 2
b. State any two methods of MouseMotionListener. 2 c. Write difference in between Abstract class and Interface. 2 d. Explain in detail any two methods of Applet life cycle. 2 e. What is the Parameterized Constructor? 2 f. Write difference in between the Applet and Application 2 Program? g. Enlist any two methods of InputStream and OutputStream 2 class. h. Define keywords (any two) 2 1. try 2. finally 3. catch()
Q.2 Attempt any three of the following. 12
a. What is Adapter Class? Give suitable example of 4
implementing MouseListener. b. Explain in detail Access Modifiers supported by java. 4 c. Explain in detail Predefined Exceptions with the help of one 4 example. d. Create an Abstract class Person. Derive two classes Employee 4 and Worker from it. Use the proper method to accept and display the details for the same, The fields of Employee are Emp_no Emp_name and address similar fields for worker are name and working_hours
Q.3 Attempt any three of the following. 12
a. Explain in detail Inner Classes in java. 4
b. Write difference between Character stream and Byte Stream 4 with the help of examples. c. Explain in detail Garbage Collection supported by java. 4 d. Write a java Program to accept the details of Employee from 4 the user and display Payment slip on the next frame.
Q.4 Attempt any three of the following. 12
a. Explain in detail BorderLayout with the help of example. 4
b. Explain in detail Call by value and Call by references with the 4 help of one example. c. Write a short note on Constructors. 4 d. Design a screen in java to handle the mouse events and display 4 position of the mouse_click in a text box.
Q.5 Attempt any three of the following. 12
a. Write a short note on package. 4
b. Explain in detail different ways of accepting input in java. 4 c. Define the following(any four) 4 1. This 2. Super 3. Throws 4. Throw 5. Final d. Write a java program to accept ‘n’ no’s through the command 4 line and store all the prime no’s and perfect no’s into the different arrays and display both the arrays.