Logo

Java Questions Set 97:

Quiz Mode

What can replace the if...else statement?

1
2
3
4

Solution:

Can the same import package/class be called multiple times in Java?

1
2

Solution:

What is the file extension of compiled Java classes?

1
2
3
4

Solution:

IS-A relationship in java is related to

1
2
3
4

Solution:

Elements in an array are accessed _____.

1
2
3
4

Solution:

Which class is the superclass of all event classes in Java?

1
2
3
4

Solution:

  All arrays contain an attribute-length which contains the number of elements stored in the array 

1
2

Solution:

The type <class-name> not necessarily be an abstract class to define abstract methods.

True or False?

1
2

Solution:

What will be the value of str after following lines of code?

 

StringBuffer str = new StringBuffer("Hello");
s.deleteCharAt(0);

1
2
3
4

Solution:

Which of these methods can be used to convert a String into a character array?

1
2
3
4

Solution: