Java Developer : Final Round 3

0%

Java Round 3 : Technical Exam

1.This exam contains 30 Questions.

2. Total Time to attempt all the questions is 30 minutes.

3. You will be notified about your result at the end of exam.

4. Please don't switch tabs or try to copy questions, as the system will detect it and consider it as malpractice.

Good Luck for your exam!

1 / 30

class Test {
   public static void main(String args[]) {
       System.out.println(fun());
   }
   static int fun() {
       static int x= 0;
       return ++x;
   }
}

2 / 30

class Test {
   public static void main(String args[]) {
       System.out.println(fun());
   }
   static int fun() {
       static int x= 0;
       return ++x;
   }
}

3 / 30

class Main {
    public static void main(String args[]) {   
        System.out.println(fun());
    
    int fun() {
        return 20;
    
}

4 / 30

class Test {
    public static void main(String[] args) {
        for(int i = 0; 1; i++) {
            System.out.println("Hello");
            break;
        }
    }
}

5 / 30

class Test {
    protected int x, y;
}
 
class Main {
    public static void main(String args[]) {
        Test t = new Test();
        System.out.println(t.x + " " + t.y);
    }
}

6 / 30

Which variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed?

7 / 30

Data type long literals are appended by _____

8 / 30

Which of these is returned by operator '&' ?

9 / 30

Which of these have highest precedence?

10 / 30

Which of the following are not Java keywords ?

11 / 30

What is byte code in Java?

12 / 30

Which provides runtime environment for java byte code to be executed?

13 / 30

In java control statements break, continue, return, try-catch-finally and assert belongs to?

14 / 30

Who is known as father of Java Programming Language?

15 / 30

Can 8 byte long data type be automatically type cast to 4 byte float data type?

16 / 30

Which of these statements are incorrect?

17 / 30

Decrement operator, −−, decreases the value of variable by what number?

18 / 30

Modulus operator, %, can be applied to which of these?

19 / 30

Which of the following can be operands of arithmetic operators?

20 / 30

Which of the following creates a List of 3 visible items and multiple selections abled?

21 / 30

Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?

22 / 30

Evaluate the following Java expression, if x=3, y=5, and z=10: ++z + y - y + z + x++

23 / 30

What does the expression float a = 35 / 0 return?

24 / 30

Which of the following is a valid long literal?

25 / 30

What is the return type of the hashCode() method in the Object class?

26 / 30

Which of the following is a valid declaration of a char?

27 / 30

____ is used to find and fix bugs in the Java programs.

28 / 30

The \u0021 article referred to as a

29 / 30

Which of the following is not a Java features?
Dynamic
Architecture Neutral
{c}Use of pointers
Object-oriented

30 / 30

Which of the following option leads to the portability and security of Java?