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. Declarations can appear anywhere in the body of a Java method.
  2. Which of the following will produce a value of 22 if x=22.9:
  3. The setBackground() method is part of the class
  4. Which of the following control expressions are valid for an if statement?
  5. The length of a string object 's1' can be obtained using the expression s1.length.
  6. In order to connect to a database through java program we must create _______-
  7. Java is fully object oriented programme.
  8. Connection, Statement are interfaces and ResultSet is a class.
  9. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  10. Any class may be inherited by another class in the same package.
  11. Which of the following statements are valid array declarations?
  12. Which key word can protect a class in package from accessibility by the classes outside the package?
  13. Declaring a method synchronized guarantees that the deadlock cannot occur.
  14. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  15. A class may be both abstract and final.
  16. class.forName(...) creates an instance of java ODBC driver
  17. The check box group class is a subclass of the component class.
  18. Any method in a supper class can be over ridden in its subclass.
  19. forName() is a static factory method
  20. Which of the following methods can be used to change the size of a size() *resize()
  21. The programmer must explicitly create the system .in and system .out objects.
  22. Which of the following will produce a value of 10 if x = 9.7?
  23. A package is a collection of
  24. Which of the following represent legal flow control statements?
  25. Which javadoc tag is used to denote a comment for methods parameters?
  26. The use of protected keyword to a member in a class will restrict its visibility as follows:
  27. In RMI we invoke client method from remote server
  28. Give file is a file object, which of the following are legal statements to create a new file.
  29. Two methods cannot have the same name in Java.
  30. Which of the following are not keywords?