Logo

Java Questions Set 91:

Quiz Mode

Where is an array stored in memory?

1
2

Solution:

Which of the following keyword restrict to modify a variable


1
2
3
4

Solution:

Which method is used to explicitly set the priority of a thread?

1
2
3
4

Solution:

What does System.getProperty(“variable”) return?

1
2
3
4

Solution:

Which of these methods is defined in the MouseMotionAdapter class?

1
2
3
4

Solution:

Can the 'abstract' keyword be used with constructor, Initialization Block, Instance Initialization, and Static Initialization Block?

1
2

Solution:

Big Decimal.One means?? 

1
2
3
4

Solution:

What is the output of the following Java program?


class multithreaded_programming

{

public static void main(String args[])

{

Thread t = Thread.currentThread();

System.out.println(t.isAlive());

}

}

1
2
3
4

Solution:

What will be the output of the following Java code?

class Output

{

public static void main(String args[])

{

try

{

int a = 0;

int b = 5;

int c = b / a;

System.out.print("Hello");

}

catch(Exception e)

{

System.out.print("World");

}

}

}

1
2
3
4

Solution:

Which of the following statements about Java coding is false?

1
2
3
4

Solution: