Logo

Java Questions Set 33:

Quiz Mode

FileWriter is a subtype of OutputStreamWriter

1
2

Solution:

Which of the following is not a feature of Java Beans?

1
2
3
4

Solution:

What will be the output of the following Java program?

1
2
3
4

Solution:

Which of the following can be overloaded?

1
2
3
4

Solution:

Which of these data types can be used in a method having a return statement in it?

1
2
3
4

Solution:

Which method of the String class is used to remove leading and trailing whitespaces?

1
2
3
4

Solution:

Deduce the output of the following code:



public class Test{


     public static void main(String []args){

         int x=5,y=9;

        System.out.println(y/x);

     }

}

Solution:

What is the output of the following Java code?


class Test {

public static void main(String args[]) {

float x;

System.out.println(x);

}

}

1
2
3
4

Solution:

Following concept can be used for encapsulation in java programs

1
2
3
4

Solution:

What does the join() method do?

1
2
3
4
5

Solution: