0% found this document useful (0 votes)
21 views

Java S-23 QP

Java answer bank

Uploaded by

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

Java S-23 QP

Java answer bank

Uploaded by

avadhutc879
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
Va-may 2023 ge aN? 22223 3 Hours / 70 Marks Seat No.[6|é |5[¢|2 [5 | | (1) All Questions are Compulsory. Instructions — 2) Answer each next main Question on a new page. G) Mlustrate your answers with neat sketches wherever necessary. (4) Figures to the right indicate full marks. (5) Assume suitable data, if necessary. (© Mobile Phone, Pager and any other Electronic Communication devices are not permissible in Examination Hall. Marks 1. ‘Attempt any FIVE of the following: 10 3) Define the terms with example i) Class ii) Object _D) Enlist any two access specifier with syntax. LS) Give a syntax to create a package and accessing package in java d) Give a syntax of following thread method i) Notify () ii) Sleep () ©) Give a syntax of (param) tag to pass parameters to an applet. ye £) Define stream class and list types of stream class. A) Give use of garbage collection in java. PTO. (2) Marks Attempt any THREE of the following: n Describe type casting in java with example Differentiate between string and string buffer class {any four points) : Write a program to create a user defined exception java. Write a program for reading and writing character to and from the given files using character stream classes. Attempt any THREE of the following: 2 Write a program to print all the Armstrong numb 0 to 999, Explain the applet life cycle with neat diagram. ers from Describe the package in java with suitable example. Enlist types of Byte stream class and describe input stream class and output stream class. Attempt any THREE of the following: 2 Describe any four features of java. Explain any four methods of vector class with example. Describe interface in java with suitable example. Write an applet program for following graphics method. i) Drawoval ( ) ii) Drawline ( ) Enlist any four methods of file input stream class and give syntax of any two methods. A 6. Vv) b) e 9) v (31 Marks of the following: 12 ‘Attempt any TWO Write a program to copy all elements of on another array. Write a program to implement the Refer Fig. No. 1 \e array into following inheritance. Student Interface : Exam Sports mark = 20; Class: Result display () Fig. 1 Write a program to print even and odd threads with delay of 1000ms after each number. number using two 12 Attempt any TWO of the following: Explain thread life eycle with neat diagram, Write a program to generate following output using drawline ( ) method. Refer Fig. No. 2. Fig. No. 2 Explain constructor with its type. Give an example of parameterized constructor.

You might also like