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. Two methods cannot have the same name in Java.
  2. When present, package must be the first no comment statement in the file.
  3. When we implement the Runnable interface, we must define the method
  4. We would like to make a member of a class visible in all subclasses regardless of what package they…
  5. Which of the following statements are true?
  6. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  7. A static class method can be invoked by simply using the name of the method alone.
  8. The modulus operator (%) can be used only with Integer operands.
  9. Which key word can protect a class in package from accessibility by the classes outside the package?
  10. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  11. Servlet can have ___________
  12. The setBackground() method is part of the class
  13. A package is a collection of
  14. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  15. Consider the following class definitions: class maths { student student1; } class student { String name;…
  16. All the bitwise operators have the same level of precedence in Java.
  17. Which of the following methods can be used to remove a component from the display?
  18. A catch can have comma-separated multiple arguments.
  19. What does the following line of code do?TextField text=new TextField(10);
  20. In RMI before running the client program we must start RMI Registry.
  21. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  22. Which are the valid ways to create DataInputStream streams?
  23. The methods wait() and noify() are defined in
  24. EJBs can be of the following type(s)None of the above
  25. Which of the following methods can be used to change the size of a size() *resize()
  26. The length of a string object 's1' can be obtained using the expression s1.length.
  27. When we implement an interface method, it should be declared as public.
  28. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  29. It is an error to have a method with the same signature in both the super class and its subclass.
  30. Consider the following class definition.Class Student extends String{}What happens when we try to compile…