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. When present, package must be the first no comment statement in the file.
  2. A string object can not be modified after it is created.
  3. A final class may not have any abstract method.
  4. Which of the following will produce a value of 22 if x=22.9:
  5. The programmer must explicitly create the system .in and system .out objects.
  6. A variable declared inside the for loop control can not be referenced out side the loop.
  7. A Java monitor must either extend thread class or implement Runnable interface.
  8. Give file is a file object, which of the following are legal statements to create a new file.
  9. Any class may be inherited by another class in the same package.
  10. In order to connect to a database through java program we must create _______-
  11. Consider the following class definitions: class maths { student student1; } class student { String name;…
  12. We would like to make a member of a class visible in all subclasses regardless of what package they…
  13. One the features of is that an array can store many different types of values.
  14. It is perfectly legal to assign a subclass object to a supper class reference.
  15. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  16. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  17. A catch can have comma-separated multiple arguments.
  18. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  19. Java is fully object oriented programme.
  20. Declarations can appear anywhere in the body of a Java method.
  21. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  22. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  23. Which are the valid ways to create DataInputStream streams?
  24. When we invoke repaint () for a Component, the AWT invokes the method:
  25. A constructor must always invoke its supper class constructor in its first statement.
  26. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  27. The concept of multiple inheritance is implemented in Java by
  28. Which of the following represent legal flow control statements?
  29. What does the following line of code do?TextField text=new TextField(10);
  30. EJBs can be of the following type(s)None of the above