Logo

Java Questions Set 165:

Quiz Mode

void()   is  an access modifier 

1
2

Solution:

In java JOptionPane is an inner class

1
2

Solution:

  Mark and sweep model is a  garbage collection technique 

1
2

Solution:

getMessage() methods return localized description of an exception 

1
2

Solution:

 The object of Matcher class is used to compile a regular expression 

1
2

Solution:

Which of the following is not a oops concept?

1
2
3
4

Solution:

The component used to compile , debug and execute a java program is  


 

1
2
3
4

Solution:

 Which capturing group can represent the entire expression 

1
2
3
4

Solution:

Which Java package is used for creating graphical user interfaces (GUIs)?

1
2
3
4

Solution:

Where is the error in this program?

class Out 

{

 

        public static int mul(int ...x)

        {

             return; 

        }

        static void main(String args[]) 

        {    

             mul(10);//Line 1

             mul(10,20);//Line 2

             mul(10,20,30);//Line 3

             mul(10,20,30,40);//Line 4

        } 

}

1
2
3
4

Solution: