JAVA TEST

Progress

1.

Which of these methods can randomize all elements in a list?

2.

Which package includes StringTokenizer that tokenizes a string into independent words?

3.

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

4.

Where an object of a class get stored?

5.

Compiler converts

6.

A package is a collection of

7.

In java multi-threading, a thread can be created by

8.

What is the string contained in s after following lines of code?
 StringBuffer s new StringBuffer("Hello);
 s.deleteCharAt(0);

9.

Which of these class is used to read characters and strings in Java from console?

10.

Which is a perfect example of runtime polymorphism?

11.

What does SDLC stands for?

12.

Which HTTP Request method is non-idempotent?

13.

HTML tags are surrounded by which type of brackets.

14.

 Abbreviate the term DOM?

15.

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

16.

Give the Output for the following program?
class Char {
public static void main(String args[]) {
char ch1, ch2;
ch1 = 88; // code for X
ch2 = 'Y';
System.out.print("ch1 and ch2: ");
System.out.println(ch1 + " " + ch2);
}
}

17.

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

18.

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

19.

HTML is what type of language ?

20.

URL is an acronym for?

21.

Which of the following variable declaration would NOT compile in a java program?

22.

What is the name of the thread in output in the following Java program?
class multithreaded_programing
    {
        public static void main(String args[])
        {
            Thread t = Thread.currentThread();
            System.out.println(t.isAlive());        
        }
    }

23.

Which of the following is not true?

24.

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

25.

What will be the output of the following Java program?
class abc
{
    public static void main(String args[])
    {
        if(args.length>0)
        System.out.println(args.length);
    }
}

26.

What is the output for the following code, when you passed letsfindcourse at run time?
class CommandLineExample{ 
public static void main(String args[]){ 
System.out.println(""Your first argument is: ""+args[0]); 

}

27.

Can we perform file handling in Java by Java I/O API?

28.

Which of the following best describes REST?

29.

To prevent any method from overriding, we declare the method as,

30.

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());

}
}

}

31.

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

32.

What is the valid data type for variable "a" to print "Hello World"?
switch(a)
{
   System.out.println("Hello World");
}

33.

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

34.

TreeSet internally uses that one to store elements?

35.

What is the output for the following code, when you passed letsfindcourse at run time?
class CommandLineExample{  
public static void main(String args[]){  
System.out.println(""Your first argument is: ""+args[0]);  
}  

36.

Which function of pre defined class Thread is used to check weather current thread being checked is still running?

37.

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]"");
        }
    }

38.

____________method can be given parameters via using command line arguments.

39.

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

40.

A HashMap permits the existence of:

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