Logo

Java Questions Set 269:

Quiz Mode

DataInputStream is a subtype of FilterInputStream

1
2

Solution:

The default serialization process can be overridden.

1
2

Solution:

What is the default layout in Java?

1
2
3
4

Solution:

Which of these constructors is used to create an empty String object?

1
2
3
4

Solution:

What is the numeric range for the char data type in Java?

1
2
3
4

Solution:

How can you create a thread in Java?

1
2
3
4

Solution:

Which exception is thrown by the compareTo() method defined in a Double wrapper class?

1
2
3
4

Solution:

Which Java classes are used for input and output operations when working with bytes?

1
2
3
4

Solution:

Which of the following statements about arrays in Java is false?

1
2
3
4

Solution:

What is the purpose of the finally block in Java?

1
2
3
4

Solution: