The import statement is always the first no comment statement in a Java program files.

A. True

B. False

You can do it
  1. It is perfectly legal to refer to any instance variable inside of a static method.
  2. Which of the following keywords are used to control access to a class member?
  3. Which exception is thrown by the read() method of InputStream class?
  4. Which are the valid ways to create DataInputStream streams?
  5. In the code below, what data types the variable x can have?
  6. A JSP file can be stored_________________
  7. It is perfectly legal to assign a subclass object to a supper class reference.
  8. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  9. Two methods cannot have the same name in Java.
  10. When present, package must be the first no comment statement in the file.
  11. Which of the following methods can be used to draw the outline of a square?
  12. Which of the following statements are valid array declarations?
  13. Servlet can have ___________
  14. Which javadoc tag is used to denote a comment for methods parameters?
  15. We can over load methods with differences only in their return type.
  16. We would like to make a member of a class visible in all subclasses regardless of what package they…
  17. A method declared as static can not access non-static class members.
  18. Members of a class specified as private are accessible only to the methods of the class.
  19. putValue(...) method takes _____________________-
  20. What is java -g used for?
  21. A final class may not have any abstract method.
  22. Which key word can protect a class in package from accessibility by the classes outside the package?
  23. Any method in a supper class can be over ridden in its subclass.
  24. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  25. Session bean
  26. The name of the RMI compiler is ___________
  27. Which of the following will produce a value of 22 if x=22.9:
  28. The use of protected keyword to a member in a class will restrict its visibility as follows:
  29. A string object can not be modified after it is created.
  30. A catch can have comma-separated multiple arguments.