SUB: COMPUTER SCIENCE-V Max. Marks: 80 Duration: 3hrs Section-A I. Answer ANY EIGHT Questions 8x4=32 Marks a) Super keyword b) Type casting c) While v/s do-while d) Abstract class and methods e) This keyword f) Wrapper classes g) J button and J Label h) Package i) Synchronization j) Interface Section-B II. Answer the following questions 12 x 4 = 48 Marks 2. a) Explain the features and advantages of JAVA b) Explain about conditional control statements with example program? Or c) Explain about Java Virtual Machine (JVM) d) Define class and object? Demonstrate class and object using example program? 3. a) Define constructor? Explain about five of constructor in java b) Write an example program for command-line arguments? Or c) Define inheritance? Explain about types of inheritance in java 4. a) Define exception? How many ways create to user-defined exception in java b) Define thread? Explain about life cycle of thread? Or
c) Write an example program for Thread priorities?
5. a) Define Applet? Explain about life cycle of Applet? b) Define Event? Explain Event handing with an example program? Or c) Explain java swing components with an example program?