JAVA TEST

Progress

1.

REST is an acronym for representational state transfer

2.

JVM stands for?

3.

Which of these is used to read a string from the input stream?

4.

Which of these keywords is used to define packages in Java?

5.

A package is a collection of

6.

HTML uses

7.

Which of the following component of HTTP response contains metadata for the HTTP Response message as key-value pairs?

8.

On which platforms Java runs?

9.

When you wish to delete an existing “Foo” via a RESTful API, which is most appropriate

10.

Which will legally declare, construct, and initialize an array?

11.

Java does not support _______________?

12.

Which of the following can be operands of arithmetic operators?

13.

HTML web pages can be read and rendered by _________.

14.

Which of the following is correct about web services?

15.

Runtime polymorphism feature in java is

16.

Which of these method of class StringBuffer is used to reverse sequence of characters?

17.

Find whether these two rules are correct or not defined by the constructor
1. Constructor name must be same as its class name.
2. Constructor must have no explicit return type.

18.

Which models do the JDBC API support for the database access?

19.

What will be the output of the following Java code?
class increment {
        public static void main(String args[])
        {       
             int g = 3;
             System.out.print(++g * 8);
        }
    }

20.

Identify the method which is not predefined in HTTP specification

21.

Which of these method of Thread class is used to find out the priority given to a thread?

22.

How would you configure a RESTful URL parameter that supports a search for a book based on its ID?

23.

Which exception is thrown when divide by zero statement executes?

24.

In which of the following package Exception class exist?

25.

What will be the output of the following Java program, Command line exceution is done as – “java Output This is a command Line”?
class Output
    {
        public static void main(String args[])
        {
            System.out.print(""args[3]"");
        }
    }

26.

Which of these keywords is not a part of exception handling?

27.

Which of these is a super class of all errors and exceptions in the Java language?

28.

What is the output of this program?

class Main

{

        public static void main(String args[])

{

try

{

System.out.print("Hello" + " " + 1 / 0);

}

catch(ArithmeticException e)

{

System.out.print("World");

}

}

}

29.

What is byte code in the context of Java?

30.

Which of the following best describes REST?

31.

In Iterator, hasMoreElements() method of Enumeration has been changed to:

32.

TreeSet internally uses that one to store elements?

33.

The ability to invoke a RESTful method multiple times without changing the state of the server on subsequent invocations is known as:

34.

What will be the output of the following code –
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.ConcurrentSkipListMap;

public class ConcurrentSkipMapTest {

public static void main (String args[])
{
Map<Integer,String> concurrentSkipListMap= new ConcurrentSkipListMap<Integer,String>();
concurrentSkipListMap.put(11,”audi”);
concurrentSkipListMap.put(44,”null”);

Iterator<Integer> keyIterator = concurrentSkipListMap.keySet().iterator();
while (keyIterator.hasNext())
{
System.out.print(keyIterator.next());

}
}

}

35.

What is garbage collection in the context of Java?

36.

What must be enabled in order for a RESTful web service to receive invocations from different domains, subdomains or ports?

37.

Which one of the following is not a Java feature?

38.

Which one of the following is not true?

39.

Which cannot directly cause a thread to stop executing?

40.

Which option is not a RESTful API constraint?

Assessment complete! Thank you for you time.
We are redirecting you to the result page, Please click on 'SUBMIT'