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

JAVA QUESTIONS

Uploaded by

Abhisek Nayak
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)
3 views

JAVA QUESTIONS

Uploaded by

Abhisek Nayak
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/ 4

No.

of Pages:4
3S-(SH)-CSC (CC)-V (R)
2021

413
7ime 3 Hours
Full Marks: 60
Answer all the questions from each Part
following the instructions given therein.
Figures in the right hand margin indicate marks.

PART-
1. Answer the following questions. [1x8 8]1
(a) Who developed Java language ?

(6) is the Java compiler.


(c) Whatis wrapper class?

d)Java supports special types ofmethod called


(e) Apackage is collectionofclassesand interfaces. (True/False)
is used to accessing and manipulating databases.

What will be the Output ofthe below code:


public class X

public static void main (String args ()

if (true)
Break

P.T.O.
121

h) What will be the Output ofthe below code:


public class A

public static void main (String args [|)

System.out.println (j'+'a'+'v'+ 'a');

PART-II
2. Answer any EIGHT of the following questions within two
to three sentences each. [1%x8= 12]
(a) What do you understand by Java virtual machine?

(6) Is Emnpty.java file name a valid source file name ?

c)What ifI write static public void instead ofpublicstatic void?

d) What arethe various access specifiers in Java?

(e) What is the purpose of static methods?

What are the advantages of packages in Java?

g) Does constructorreturm any value?

(h) Why is the main method static?


G) Why is multiple inheritance not supportedin java?

) What is TCP/IP?

3S-(SH)-CSC(CC)-V (R)
[31
PART I
3. Answer any EIGHT of the following within 75 words each.
[2x8 161
(a) What are the main uses of this keyword ?

(b) What are different types of constructor ?

() What is an Interface?

(d) What is Auto-Boxing?


(e) Explain aray of object.

(Explain creation of String object

(g What are character streams?

(h) Whatis multithreading?


What are the uses of java.net packages?

) What are multiple threads ?

PART-IVV
(Answer the following questions within 500 words)

4. Discuss Decision making statements used in Java. [6


OR

Explain the basic feature of java as an object oriented


programming language. [61

3S-(SH)-CSC(CC)-V (R) P.T.O.


[41

5. What is Constructor ? What is their special property ? How do


we invoke a constructor ? [6]
OR
class
package ? What are the advantages of storing
a
What is a
? [6
in a package ? How does one put a class in a package
Write an array program in Java to sort 10 numbers in ascending
6.
order. [61
OR

Explainthefollowings [3x2-6]

) File Writer

) StringBuffer class

What is an exception ? Create a try block that is likely to generate


7.
to catch
exception and then incorporate necessary catch blocks
and handle them appropriately. [6
OR
What is thread ? Describe the complete life cycle of thread. [6]

O00

38-(SH)-CcSC(CC)-v (R) No. of copies: 70

You might also like