Static methods can call other static methods only
Predict the output of the following Java code.
What is the default value of priority value MAX_PRIORITY in java.
What data type value is returned by the equals()
method of the String class?
Which of the following syntax is used to create an HQL (Hibernate Query Language) query?
What is the purpose of static methods and static variables in Java?
Which of the following statements about JUnit is false?
Which of the following statements about Java Beans is not true?
import java.util.*;
class result
{
public static void main(String args[])
{
Properties obj = new Properties();
obj.put("A", new Integer(1));
obj.put("A", new Integer(3));
obj.put("B", new Integer(2));
obj.put("B", new Integer(4));
obj.put("C", new Integer(8));
obj.put("C", new Integer(8));
obj.put("D", new Integer(7));
obj.put("D", new Integer(9));
obj.put("E", new Integer(4));
obj.put("E", new Integer(5));
obj.put("F", new Integer(6));
obj.put("F", new Integer(6));
System.out.print(obj.keySet());
}
}