601. JIT meaning ?
A. just in time
B. java in time
C. join in time
D. none of above

602. How many transaction isolation levels are defined in java.sql.Connection interface ?
A. 6
B. 2
C. 5
D. 3

603. Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct ?
A. From within protected methods you do not have access to public methods.
B. This method is only accessible from inside the class itself and from inside all subclasses.
C. In a class, you cannot declare methods with a lower visibility than the visibility of the class in which it is defined.
D. This method is accessible from within the class itself and from within all classes defined in the same package as the class itself.

604. What is the output for the below code ? public class Test{public static void main(String[] args){int i = 010; int j = 07;System.out.println(i); System.out.println(j); } } ?
A. 7 8
B. 8 7
C. 9 8
D. None

605. Which method executes only once ?
A. stop() method
B. start() method
C. init() method
D. destroy() method

606. Size of int in Java is_________________?
A. 8 bit
B. 16 bit
C. 32 bit
D. 64 bit

607. Which of the following command is used to compile the Java program ?
A. java
B. javac
C. javap
D. none of these

608. Which method of the Applet class displays the result of applet code on screen ?
A. paint() method
B. main() method
C. run() method
D. drawString() method

609. javah stands for ?
A. java dissasamebler
B. java header file
C. java interpreter
D. java compiler

610. A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
A. Declare the method with the keyword public.
B. Declare the method with the keyword private.
C. Do not declare the method with any accessibility modifiers.
D. Declare the method with the keyword public and private.

NOTE
IF YOU THINK ANY OF THE MCQ ABOVE IS WRONG.
PLEASE COMMENT WITH CORRECT ANSWER AND ITS DETAIL EXPLANATION IN COMMENT BOX.
THANK YOU

This Post Has One Comment

Leave a Reply