Msbte Qp Winter 2008 - Jpr(9113)

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Msbte Qp Winter 2008 - Jpr(9113) as PDF for free.

More details

  • Words: 325
  • Pages: 1
9113 0809-1 3 Hours / 80 Marks 1. Attempt any four of the following: a) State any four features of Java. b) Describe arithmetic operators with example. c) Describe general structure of class with example. d) What is major difference between an interface and class? e) Describe different forms of inheritance with example. f) What is stream? Explain various types of streams.

16

2. Attempt any three of the following: a) What is method overloading? Give one example. b) What is Vector? How it is differ from array? Explain. c) Define package. How to create package? d) Write applets to draw a square inside the circle.

12

3. Attempt any three of the following: 12 a) Describe the complete life cycle of threads. b) Write the steps involved in developing and running local applet. c) Write the program to convert a decimal number to binary form and display the value. d) What the similarities between classes and interfaces. 4. Attempt any two of the following: a) Explain following methods related to threads. 1) suspend( ) 2) resume( ) 3) yield( ) 4) wait( ) b) Explain substring( ), concat( ), trim( ), replace( ) methods of string class. c) Write a program to create two threads so one thread will print ascending numbers whereas second thread will print descending numbers between sequence 1 to 15 numbers.

16

5. Attempt any three of the following: 12 a) Describe various bitwise operators with examples. b) How do we add class or interface to package? c) How parameter is passed to applet? Explain with example. d) Describe the most commonly used classes for handling i/o related exceptions. 6. Attempt any three of the following: 12 a) How applet differs from applications? Explain with examples. b) Write a Java program to calculate area of the circle in which implementation of interface as a class type. c) Write a applet program to display “Polygons”. d) Explain exception handling in Java.

Related Documents