Q1 which one is bitwise operator

A. &&

B. ||

C. &

D. <<>

Q2 which one is comment indicator

A. ?

B. \\

C. //

D. ||

Q3 exception keywords

A. throw

B. try

C. catch

D. all of the above

Q4 Java uses____ to destroy a objects created by constructor

A. destructor()

B. destroyer()

C. finalize()

D. none of the above

Q5 public,private,protected are

A. access keywords

B. structure keywords

C. exception keyword

D. not the keywords

Q6 Java standard library includes hundreds of classes and methods grouped into __ functional packages

A. 6

B. 7

C. 9

D. 10

Q7 a base class is inherited by

A. derived class

B. inline function

C. constructor

D. none of the above

Q8 JDK stands for

A. java debug kit

B. java developer kit

C. java database kit

D. java documentation kit

Q9 constructor method have

A. the same name as the class

B. not any return type

C. both option 1&2

D. none of the above

Q10 Which statement is true

A. java uses stdio.h header file

B. java uses string.h header files

C. java uses iostream.h header file

D. no header files are used in java

Q11 Packages are java's way of

A. grouping a variety of classes and interfaces together

B. grouping a variety of classes or interfaces together

C. both of the above

D. none of the above

Q12 the java debugger is

A. javaerror

B. javad

C. jab

D. jdb

Q13 In java which is valid

A. like classes, interfaces are declared in source files

B. like classes,interfaces are also compiled into .class files using the java compiler

C. both 1& 2

D. none of the above

Q14 main() returns a value of type

A. real

B. char

C. int

D. null

Q15 a command that disassembles java.class files

A. javac

B. javav

C. javap

D. javad

Q16 method definitions have basic parts

A. the name of method

B. the type of object or primitive type returned by t

C. the body of the method

D. all of the above

Q17 In java short is data type of length

A. 8 bits

B. 16 bits

C. 32 bits

D. 4 bits

Q18 in a class specifier data or function designated private are accessible

A. to any function in the program

B. only if you know the password

C. to member functions of that class

D. only to public members of the class

Q19 there are following phases in lifecycle of threads in java

A. three

B. four

C. five

D. two

Q20 new operator is used

A. to dynamically allocate storage

B. to statically allocate storage

C. to allocate storage for new variable

D. none of the above is correct

MCQ Questions, ihkcl.in
MCQ Questions, ihkcl.in
MCQ Questions, ihkcl.in
MCQ Questions, ihkcl.in
MCQ Questions, ihkcl.in
MCQ Questions, ihkcl.in