Category Archives: Java Quiz

Predict the output of following Java program filter_none edit close play_arrow link brightness_4 code // Note static keyword after import. import static java.lang.System.*;      class… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test {   int count = 0;        void A() throws… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test {     public static void main(String[] args)     {         String str… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test {     String str = "a";        void A()     {… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test {     public static void main(String[] args)     {         Double object… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test implements Cloneable {     int a;        Test cloning()     {… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test {        public static void main(String[] args)     {         String… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test {     int a = 1;     int b = 2;… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test {     int a = 1;     int b = 2;… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test {     boolean[] array = new boolean[3];     int count =… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code     class First {        void display()     {         System.out.println("Inside First");     }… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code abstract class demo {     public int a;     demo()     {         a =… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test {     public static void main(String[] args)     {         StringBuffer a… Read More
Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test {     public void demo(String str)     {         String[] arr =… Read More
Predict the output of following Java program. filter_none edit close play_arrow link brightness_4 code class demoClass {     int a = 1;        void func()     {… Read More