Logo

Java Questions Set 94:

Quiz Mode

Which of the following operators has the highest precedence?

1
2
3
4

Solution:

When frequent changes are required in data, which should be preferred?

1
2
3
4

Solution:

Which of the following is not a feature of Java?

1
2
3
4

Solution:

Which of the following is used to access a member without creating the object for that class?

1
2
3
4

Solution:

When an expression involves byte, int, and literal numbers, the expression is promoted to which data type?

1
2
3
4

Solution:

What is the correct syntax for creating an SQL query in Hibernate?

1
2
3
4

Solution:

Predict the output of the following Java code.

class Abekus {

int i;

}

class AbekusMain {

public static void main(String[] args) {

Abekus a;

System.out.println(a.i);

}

}

1
2
3
4

Solution:

What will be the output of the following Java code?

class calculate

{

public static void main (String[] args)

{

int a=4;

System.out.println(++a * 8);

System.out.println(" " + a++ * 8);

}

}

1
2
3
4

Solution:

What is the output of the following Java code?

public class Abekus {

public static void main(String[] args) {

int a = 86, b = 100100;

if (a > b)

int i = 0;

else {

System.out.println("Hi");

}

}

}

1
2
3

Solution: