Home

The name of a Java program file must match the name of the class with the extension Java.

A. True

B. False

You can do it
  1. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  2. Which of the following methods can be used to draw the outline of a square?
  3. Which of the following methods can be used to remove a component from the display?
  4. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  5. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  6. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  7. Any class may be inherited by another class in the same package.
  8. A catch can have comma-separated multiple arguments.
  9. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  10. Every method of a final in class is implicitly final.
  11. Which of the following command lines options generates documentation for all classes and methods?
  12. Frames and applets cannot be used together in the same program.
  13. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  14. To delete a file, we can use an instance of class file.
  15. In RMI before running the client program we must start RMI Registry.
  16. We can add more than one class(es) at the time of compilation Java Beans.
  17. In order to connect to a database through java program we must create _______-
  18. When we implement the Runnable interface, we must define the method
  19. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  20. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  21. Which of the following statements are true?
  22. An EJB is a server-side component that encapsulates the business logic of an application
  23. Which of the following control expressions are valid for an if statement?
  24. Java always provides a default constructor to a class.
  25. A package is a collection of
  26. Servlet has ___________
  27. Connection, Statement are interfaces and ResultSet is a class.
  28. Members of a class specified as private are accessible only to the methods of the class.
  29. executeUpdate(------------) returns ___________
  30. The concept of multiple inheritance is implemented in Java by