Logo

Java Questions Set 256:

Quiz Mode

Treemap implement Navigable map

1
2

Solution:

  Abstract class can be inherited 

1
2

Solution:

What is the return type of equals() method of String class?

1
2
3
4

Solution:

Which of these Java interfaces define a method itemStateChanged()?

1
2
3
4

Solution:

To implement serialization in java there is an interface defined in ______ package called serializable.

1
2
3
4

Solution:

Which event is generated when an item from a list, a choice, or a check box is selected?

1
2
3
4

Solution:

Which two of the following methods are defined in the Thread class?

1
2
3
4

Solution:

public class abekus

{

public static void main(String[] args) {

int a = Integer.parseInt("abekus");

System.out.print(a);

}

}

1
2
3
4

Solution:

What would be the output of the following code?

int a = 5 ;

if(a<=0)

{

   if(a==0)

   {

     System.out.println("a ");

   }

   else 

   { 

      System.out.println("b ");

   }

}

System.out.println("c ");


1
2
3
4

Solution:

Which of the following should be true of the object thrown by a throw statement?

1
2
3
4

Solution: