JAVA TEST

Progress

1.

try, catch, finally, throw, and throws keywords in java are related to

2.

Which is a valid keyword in java?

3.

Which JDBC product components does the Java software provide?

4.

Which of these method of class String is used to check weather a given object starts with a particular string literal?

5.

Which keyword is used by classes to implement an interface?

6.

HTML web pages can be read and rendered by _________.

7.

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

8.

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.

9.

URL is an acronym for?

10.

Choose The Correct HTML Tag To Make A Text Italic

11.

What does the expression float a = 35 / 0 return?

12.

Java has 5 phases, Editing, Compilation, Loading, Verification & Execution. Which of the following unit is responsible for execution?

13.

JDBC stands for?

14.

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

15.

Java does not support _______________?

16.

Which of these values can a boolean variable contain?

17.

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

18.

Which is a perfect example of runtime polymorphism?

19.

Evaluate the following Java expression, if x=3, y=5, and z=10: ++z + y - y + z + x++

20.

Which HTTP method(s) should be used for creating a resource

21.

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

22.

Which option is not a RESTful API constraint?

23.

_______ is not a flow control statement in Java. 

24.

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

}

25.

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

26.

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

27.

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

28.

Which of the following is not an HTTP method?

29.

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

30.

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

31.

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

32.

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

33.

The insistence that RESTful APIs have URLs that identify resources in a consistent and predictable manner is known as:

34.

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

35.

Which of the following is not true?

36.

Which one of the following is not true?

37.

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

38.

Which of the following is an iteration statement?

39.

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

}
}

}

40.

Which of the following best describes REST?

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