When present, package must be the first no comment statement in the file.

A. True

B. False

You can do it
  1. An EJB is a server-side component that encapsulates the business logic of an application
  2. A final class may not have any abstract method.
  3. When we implement the Runnable interface, we must define the method
  4. Which of the following are keywords?
  5. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  6. It is an error to have a method with the same signature in both the super class and its subclass.
  7. executeUpdate automatically updates data because___________
  8. Submit button always fires doPost(...)
  9. Which of the following keywords are used to control access to a class member?
  10. Which of the following will produce a value of 22 if x=22.9:
  11. It is perfectly legal to assign a subclass object to a supper class reference.
  12. putValue(...) method takes _____________________-
  13. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  14. The name of the RMI compiler is ___________
  15. Two methods cannot have the same name in Java.
  16. Connection, Statement are interfaces and ResultSet is a class.
  17. A variable declared inside the for loop control can not be referenced out side the loop.
  18. The setBackground() method is part of the class
  19. Any class may be inherited by another class in the same package.
  20. Give file is a file object, which of the following are legal statements to create a new file.
  21. Java always provides a default constructor to a class.
  22. JSP files creates ________________
  23. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  24. An individual array element that is passed to a method and modified in that method will contain the…
  25. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  26. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  27. When the string objects are compared with ==, the result is true If the strings contain the same values.
  28. Which of the following statements are true?
  29. Objects are passed to a method by use of call-by-reference.
  30. All the bitwise operators have the same level of precedence in Java.