Please enter your details here.
Super keyword in java is used to
What is the string contained in s after following lines of code? StringBuffer s new StringBuffer("Hello); s.deleteCharAt(0);
What is the value stored in x in following lines of code? int x, y, z; x = 0; y = 1; x = y = z = 8;
HTML uses
True statements about object of Insurance class is/are class Insurance{ int policyNumber; }
public class Bank { public static void main(String[] args) { Insurance policy = new Insurance(); } }
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.
When you wish to delete an existing “Foo” via a RESTful API, which is most appropriate
Multiple inheritance means,
What is the valid data type for variable "a" to print "Hello World"? switch(a) { System.out.println("Hello World"); }
Which annotation is used to represent command line input and assigned to correct data type?
The insistence that RESTful APIs have URLs that identify resources in a consistent and predictable manner is known as:
What must be enabled in order for a RESTful web service to receive invocations from different domains, subdomains or ports?
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]); } }
Can we perform file handling in Java by Java I/O API?
Which of the following is not true?
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); } }
Which one of the following is not a Java feature?
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()); } }
Which cannot directly cause a thread to stop executing?
What will be the output of the following code snippet?
int a=15;
int b=25;
if ((a < b ) || ( a = 5)>15)
system.out.println(a);
else
system.out.println(b);
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());
} }
}