Docsity

JAVA PROGRAMMING IMPORTANT QUESTIONS, Exams of Java Programming

Toggle sidebar
bg1
Q. No. 1Attempt any FIVE of thefoliowing (5*4-20)
a) Enlist any eight
features of Java.
b) Define Wrapper class. Write aprogram using Wrapper class.
c) Draw an Applet life cycle. Explain its methods.
d) Define Exception. Explain process of handling exception.
eExplain tokens used in Java.
Enlist types of variables in Java. Explain anytwo with example.
gDescribe Static imports and Draw hierarchy of Writer Streamclass.
Q. No. 2Attempt any TWO of thefollowing (26-12)
Describe the use of append, replace, reverse methods along with syntax.
b) Answer thefollowing
i)
a)
Define Package ii) Types of Package with diagram il) Access packages
c) Describe wait(0, sleep(), notify(),resume() thread methods with syntax and
example
Q. No. 3Attempt any TWO of thefoliowingg
a) Describe Thread life cycle in detail.
(26=12)
a)
b) Write aprogram using Applet to display
i) Arc i) Rectangle ii) Circle iv) Ellipse.
c) Define file. Explain steps to create afile with example.
(2*6-12
Q. No. 4Attempt any TWOO of thefoilowing
a) Write aprogram based on Parameterized constructor &Default constructor.
Describe process of defining interface and implement it with example.
b)
c)c)Write athread program for implementing Runnable
interface.
Q. No. 5Attempt any TWO of thefollowing (2*612)
Enlist types of Inheritance. Write aprogram to implement Multilevel inheritance.
a)
Enlist types of errors. Also explain built-in exceptions in detail.
b)
Explain inter-thread communication.
c)
Q. No. 6Attempt any TWO of thefollowing (2*612)
a) Define Graphics Class. Explain its methods.
b) Define astream. List and Explain types of stream class
Differentiate between constructor overloading and overriding. Enlist types of
C)
constructor with syntax. -END.

Partial preview of the text

Download JAVA PROGRAMMING IMPORTANT QUESTIONS and more Exams Java Programming in PDF only on Docsity!

Q. No. 1

Attempt any FIVE^ of the

foliowing

a) Enlist^

any

eightfeatures of (^) Java.

b) Define^

Wrapper

class. (^) Write a program (^) using

Wrapper

class.

c)

Draw an

Applet life^ cycle. (^) Explain its^ methods.

d) Define

Exception. Explain process of handling (^) exception.

e

Explain tokens used in Java.

Enlist types of variables in (^) Java.

Explain any two^ with^ example.

g

Describe (^) Static imports

and Draw

hierarchy

of (^) Writer

Stream

class.

Q. No. (^2) Attempt any TWO^ of the following (26-12)

Describe the use of

append,replace, reverse methods

along

with syntax.

b) Answer the

following

i)

a)

Define

Package ii) Types of^

Package

with diagram il)

Access

packages

c) Describe

wait(0, sleep(), notify(),resume()

thread methods with

syntax

and

example

Q. No. 3 Attempt any TWO of the foliowingg

a) Describe Thread life

cycle

in detail.

(26=12)

a)

b) Write^ a^ program using Applet to display

i)

Arc

i) (^) Rectangle ii) Circle iv) Ellipse.

c)

Define file. Explain steps

to create a file with

example.

Q. No.^4

Attempt any TWOO^ of the

foilowing

a)

Write a

program based on

Parameterized (^) constructor & Default constructor.

Describe process

of defining

interface and

implement it with^ example.

b)

c)c)Write

a thread

program for implementing^

Runnable

interface.

Q. No. 5

Attempt any

TWO of the following (2*612)

Enlist types of

Inheritance. Write a

program

to implement Multilevel^ inheritance.

a)

Enlist types

of (^) errors. Also explain built-in exceptions

b) in detail.

Explain c) inter-thread^ communication.

Q. No. 6

Attempt any

TWO of the following (2*6 12 )

a)

Define Graphics Class. Explain its (^) methods.

b)

Define a stream. List and

Explain types of stream class

Differentiate between constructor

overloading

and

overriding. Enlist types of

C)

constructor with syntax.

-END.