Please enter your details here.
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); } }
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.
JDBC stands for?
Java does not support _______________?
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); } }
Which HTTP method(s) should be used for creating a resource
Which option is not a RESTful API constraint?
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]); } }
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); } }
What is the significance of using instanceOf operator and getClass() in equals method?
What is the valid data type for variable "a" to print "Hello World"? switch(a) { System.out.println("Hello World"); }
What must be enabled in order for a RESTful web service to receive invocations from different domains, subdomains or ports?
The insistence that RESTful APIs have URLs that identify resources in a consistent and predictable manner is known as:
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]""); } }
Which of the following is not true?
Which one of the following is not true?
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); } }
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());
} }
}
Which of the following best describes REST?