JAVA TEST

Progress

1.

Which of the following is correct about web services?

2.

In which the access modifier means that the field can be accessed by all classes in your application?

3.

What will be the output of the following Java program?
class evaluate
    {
        public static void main(String args[])
            {
        int arr[] = new int[] {0 , 1, 2, 3, 4, 5, 6, 7, 8, 9};
        int n = 6;
                n = arr[arr[n] / 2];
        System.out.println(arr[n] / 2);
            }
    }

4.

What is Collection in Java?

5.

Java does not support _______________?

6.

Which HTTP Request method is non-idempotent?

7.

What happens if Restful resources are accessed by multiple clients?

8.

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

9.

What does SDLC stands for?

10.

In java, “this” keyword is used to

11.

Encapsulation concept in java is

12.

Which specification that provides runtime environment in which java byte code can be executed?

13.

What will be the output of the program?
public class CppBuzz {
public static void main(String[] args){
 int a = 5+5*2+2*2+(2*3);
 System.out.println(a);
}
}

14.

What will this code print?
 int arr[] = new int [5];
 System.out.print(arr);

15.

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

16.

Which of the following is not an OOPS concept in Java?

17.

Java object oriented programming concepts is/are

18.

Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?

19.

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

20.

Which keyword is used by classes to implement an interface?

21.

TreeSet internally uses that one to store elements?

22.

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

23.

What is the significance of using instanceOf operator and getClass() in equals method?

24.

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

25.

Which of the following is not true?

26.

What is the output of the following code:
class eq
{
public static void main(String args[])
{
String s1 = “Hello”;
String s2 = new String(s1);
System.out.println(s1==s2);
}
}

27.

Which of the following is an iteration statement?

28.

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

29.

Which of the following is not an HTTP method?

30.

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

31.

Which of the following for loop declaration is not valid?

32.

Which header should be configured to tell the server XML is preferred over JSON?

33.

Which of those isn’t an interface within the Collections Framework?

34.

An unordered array has a time complexity of:

35.

In which of the following package Exception class exist?

36.

What will be the output of the following Java code?
class multithreaded_programing
    {
        public static void main(String args[])
        {
            Thread t = Thread.currentThread();
            t.setName("New Thread");
            System.out.println(t);        
        }
    }

37.

Multiple inheritance means,

38.

Which of these keywords is used to manually throw an exception?

39.

Which one of the following is not true?

40.

object B: wait(2000); After calling this method, when will the thread A become a candidate to get another turn at the CPU?

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