0% found this document useful (0 votes)
37 views2 pages

Java Sy Dip (Prelium)

Uploaded by

vedived92
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

Java Sy Dip (Prelium)

Uploaded by

vedived92
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SY DIPLOMA

Sub: JAVA Marks: 70 Time: 3 Hrs.

Q.1) Attempt any FIVE of the following. (10 Marks)

a) Give syntax and example of following math functions.


i) sqrt ()
ii) pow ()
b) Enlist access specifiers in Java.
c) Name the methods from wrapper class for following task
i) To convert string objects to primitive int.
ii) To convert integer object to string object.
d) State the use of static keyword
e) Enlist any 4 keywords used for exception handling in Java.
f) Give syntax of <param> tag to pass parameters to an Applet.
g) Give any two methods from File class with their usage

Q.2) Attempt any THREE of the following.( 12 Marks)

A. Write a program to find largest between two numbers using ‘?:’ operator.
B. Define class Student with suitable data members create two objects using two
different constructors of the class.
C. Describe life cycle of thread with suitable diagram.
D. Write a program to copy content of one file into another file.

Q.3) Attempt any THREE of the following.( 12 Marks)

a) Write a program to check if number is prime or not


b) State need of interface with suitable examples.
c) Give usage of following methods :
i) drawOval()
ii) getFont()
iii) drawArc()
iv) getFamily()
d) Enlist types of stream classes and describe methods for reading and writing
data for each type.

Q.4) Attempt any THREE of the following.( 12 Marks)

A. Describe types of variables in Java with their scope.


B. Write a program to initialize object of a class student using parameterized
constructor.
C. Write a program to create package Math_s having two classes as addition and
subtraction. Use suitable methods in each class to perform basic operations.
D. Differentiate between Java Application and Java Applet (any 4 points)
E. Write a program to copy content of one file to other

Q.5) Attempt any TWO of the following. (12 Marks)

A. Write a step to declare and define one and two dimensional arrays of a class
with example
B. Explain Life cycle of Thread
C. Write a program to define two threads for displaying even and odd numbers
respectively with a delay of 500 ms after each number.

Q.6) Attempt any TWO of the following. (12 Marks)

a) Write a program check number is Palindrome or not


b) Describe types of Errors and Exceptions in details.
c) Design an Applet to show concentric circles

You might also like