Home

The keywords reserved but not used in the initial version of Java re:

A. Synchronized

B. Boolean

C. union

D. goto

You can do it
  1. The methods wait() and noify() are defined in
  2. Members of a class specified as private are accessible only to the methods of the class.
  3. putValue(...) method takes _____________________-
  4. When we implement the Runnable interface, we must define the method
  5. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  6. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  7. Which of the following methods belong to the String class?
  8. Any class may be inherited by another class in the same package.
  9. Which of the following will produce a value of 10 if x = 9.7?
  10. Give file is a file object, which of the following are legal statements to create a new file.
  11. Servlet has ___________
  12. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  13. In RMI we invoke client method from remote server
  14. A string object can not be modified after it is created.
  15. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  16. Throwing an exception always causes program termination.
  17. Which of the following are the wrapper classes?
  18. In the code below, what data types the variable x can have?
  19. With javadoc, which of the following denotes a javadoc comment?
  20. JSP files creates ________________
  21. Java always provides a default constructor to a class.
  22. To delete a file, we can use an instance of class file.
  23. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  24. When present, package must be the first no comment statement in the file.
  25. We can add more than one class(es) at the time of compilation Java Beans.
  26. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  27. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  28. The use of protected keyword to a member in a class will restrict its visibility as follows:
  29. A package is a collection of
  30. The break statement is required in the default case of a switch selection structure.