JPR 1526 TYIF
1526 0809-1 3 Hours / 100 Marks 1. Attempt any Five of the following: a) Describe different tools of JDK. b) What is difference between ‘>>’ and ‘>>>’ operators? c) Describe the purpose of finalize()? Can a object finalize() method called programmatically? d) What is scope of the variables? e) How to compare two strings using different methods? f) What is difference between paint() and repaint() methods? g) How can Ckeckbox class be used to create radio buttons?
20
2. Attempt any Two of the following: 16 a) Illustrate with example static and non-static inner class. b) Develop a standalone Java program for the example where interface can be used to support multiple inheritance. c) Explain with example the use of synchronized method in Java with respect to multithreading. 3. Attempt any Two of the following: 16 a) What is Layout Manager? Will there be any problem if Layout Managers are not used? What are different types of layouts? b) Write an applet to design an add calculator i.e. having three text fields two to accept the operands and third to display result of addition when ‘+’ button is pressed. c) Illustrate with example use of ‘this’ reference. 4. a) Attempt the following: i. What is GridLayout? How to set this layout in Java? ii. Write an applet to draw a triangle on the screen. b) Attempt any Two of the following: i. Compare throw and throws w.r.t exception handling. ii. Compare TCP/IP and UDP. iii. Describe datagram packet constructors.
8 8
5. Attempt any Two of the following: 16 a) Write an applet to draw a bar-chart for the following table Year vs. Turnover in (Rs.) Year 1991 1992 1993 1994 Turnover (Rs.) 110 150 100 170 b) Illustrate with example try catch block. c) Describe the use of statement interface w.r.t JDBC.
MSBTE Winter 2008 Yearly Pattern
-1-
JPR 1526 TYIF 6. Attempt any Two of the following: 16 a) Illustrate with example use of abstract class w.r.t. inheritance. b) Write a Java program to sort the given number of strings in alphabetical order. c) Using file class, write a program to list the contents of current working directory.
-------------
MSBTE Winter 2008 Yearly Pattern
-2-