Logo

Java Questions Set 237:

Quiz Mode

pattern class is not a class of java.util.regex 

1
2

Solution:

Which of these operators can be used to concatenate two or more string objects?

1
2
3
4

Solution:

What is the main advantage of using BigDecimal over double?

1
2
3
4

Solution:

class Demo{

 public static void main(string args[]){

  System.out.println(2+3);

 }

}

1
2
3
4

Solution:

Which of the following classes is the superclass of FocusEvent?

1
2
3
4

Solution:

Which event is generated when a computer gains or loses input focus?

1
2
3
4

Solution:

class test{

public static void main (String[] args) {

  short s=150;

  byte b=(byte)s;

  System.out.println(b);

}

}

1
2
3
4

Solution:

public class Abekus

{  

public static void main(String[] args) {

String str = "1234";

int a = Integer.parseInt(str);

System.out.println(a);

}

}

1
2
3
4

Solution:

class A
{  
   protected int method1(int a, int b)
   {
       return 0;
   }
}

Which is valid in a class that extends class A?

1
2
3
4

Solution:

Which option is correct to get the output as abekus.com?

1
2
3
4

Solution: