Please enter your details here.
What is the string contained in s after following lines of code? StringBuffer s new StringBuffer("Hello); s.deleteCharAt(0);
Which of the following option leads to the portability and security of Java?
Which package includes StringTokenizer that tokenizes a string into independent words?
XML stands for?
HTML uses
What will be the output of the following program? public class Test { public static void main(String[] args) { int count = 1; while (count <= 15) { System.out.println(count % 2 == 1 ? "***" : "+++++"); ++count; } // end while } // end main }
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); } }
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 Java code? class multithreaded_programing { public static void main(String args[]) { Thread t = Thread.currentThread(); t.setName("New Thread"); System.out.println(t); } }
object B: wait(2000); After calling this method, when will the thread A become a candidate to get another turn at the CPU?
What is the valid data type for variable "a" to print "Hello World"? switch(a) { System.out.println("Hello World"); }
What will be the output of the following code – import java.util.Iterator; import java.util.Set; import java.util.concurrent.CopyOnWriteArraySet; public class CopyOnWriteArraySetTest { public static void main (String args[]) { Set<String> copyOnWriteArraySet = new CopyOnWriteArraySet<String>(); copyOnWriteArraySet.add(” a “); copyOnWriteArraySet.add ( ” b” ); Iterator<String> iterator = copyOnWriteArraySet.iterator(); while(iterator.hasNext()) { copyOnWriteArraySet.add( ” c ” ); System.out.println(iterator.next()); }
Which of the following best describes REST?
Multiple inheritance means,
How would you configure a RESTful URL parameter that supports a search for a book based on its ID?
Which of the following is not true?