Logo

Java Questions Set 186:

Quiz Mode

Array stores in Heap space


1
2

Solution:

Which of the following is a Non-Access modifier?

1
2
3
4

Solution:

What will be the output of the following Java program?

1
2
3
4

Solution:

Which environment variable is used to specify the path to Maven?

1
2
3
4

Solution:

______ are growable in nature, they don't have a fixed size.

1
2
3
4

Solution:

Which is the correct way to import an entire package 'pkg'?

1
2
3
4

Solution:

What does JDBC stand for?

1
2
3
4

Solution:

Which of these methods of the Character wrapper class can be used to obtain the char value contained in the Character object?

1
2
3
4

Solution:

Select the CORRECT statement.

1
2
3
4

Solution:

    import java.util.*;

    class output 

    {

        public static void main(String args[]) 

        {

            Stack obj = new Stack();

            obj.push("A");

            obj.push("B");

            obj.push("C");

            obj.push("E");

System.out.println(obj.peek());

        }

    }

1
2
3
4
5

Solution: