Logo

Java Questions Set 151:

Quiz Mode

ArrayList is Index based  

1
2

Solution:

_______ class provides a mechanism to convert primitive type value into object type value.

Solution:

Which of these methods will be invoked when a character is entered?

1
2
3
4

Solution:

Which of these methods is used to check for infinitely large and small values?

1
2
3
4

Solution:

Which of the following can not be used for variable name

1
2
3
4

Solution:

Which of the following events is generated when the user clicks on a button?

1
2
3
4

Solution:

Which types of exceptions are caught at compile time?

1
2
3
4

Solution:

 toArray() : This method not returns an array containing all of the elements in this list in proper sequence (from first to last element). 

1
2

Solution:

What will be the output of the following Java program?

class Output

{

public static void main(String args[])

{

Integer i = new Integer(257);

byte x = i.byteValue();

System.out.print(x);

}

}

1
2
3
4

Solution:

Statement 1-Collection only deal with primitive

Statement 2- Collection only deal with object

Statement 3- Collection only deal with class 

1
2
3
4

Solution: