TreeSet are sorted in the natural order
All protected methods are friendly methods
What is the main purpose of serialization in java?
Which of these interfaces is not a member of the java.io package?
What does an interface contain?
In _____ state, the thread can be made temporarily inactive for a short period of time.
What is the correct file name of the .class file for an inner class in Java?
class Demo{
public static void main(String[] args){
String sentence1 = "hello";
String sentence2 = "meklo";
System.out.println(s1.compareTo(s3));
}
}
What is the output of the following code?
//Predict the output
import java.util.Scanner;
public class MyClass
{
public static void main(String args[])
{
StringBuffer str = new StringBuffer("1 2 3 4 5 6 7 8 9 10");
str.reverse();
System.out.println(" " + str);
}
}
What are the benefits of PreparedStatement over Statement?