Logo

Java Questions Set 111:

Quiz Mode

 ASCII character set supports only English

1
2

Solution:

When is method overloading determined?

1
2
3
4

Solution:

What does 'DAO' stand for?

1
2
3
4

Solution:

How can we create a symbolic link to a file?

1
2
3
4

Solution:

Which of the following statement(s) about an abstract class in Java is/are true?

1
2
3
4

Solution:

What is the output of the following Java code?

import java.util.*;

class Main

{

public static void main(String[] args){

  int a=012;

  System.out.println(a);

}

}

1
2
3
4

Solution:

Select the true statement.

1
2
3
4

Solution:

public classInstanceOfExample 

{

    public static voidmain(String[] args)

    {

       Integer a = newInteger(5);

       if (a instanceof java.lang.Integer)

            System.out.println(true);

       else

            System.out.println(false);

    } 

}

What is the output of the above code? 

1
2

Solution:

Predict the output of the following Java code:

import java.util.Scanner;

public class MyClass {

public static void main(String args[]) {

String str = "how are you";

String Str1 = str.replaceAll("\\s", "");

System.out.println(Str1);

}

}

1
2
3
4

Solution: