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. Servlet can have ___________
  2. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  3. Which of the following classes are available in the java.lang package?
  4. Declaring a method synchronized guarantees that the deadlock cannot occur.
  5. Which key word can protect a class in package from accessibility by the classes outside the package?
  6. In RMI before running the client program we must start RMI Registry.
  7. It is an error to have a method with the same signature in both the super class and its subclass.
  8. Java is fully object oriented programme.
  9. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  10. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  11. What is java -g used for?
  12. When we implement an interface method, it should be declared as public.
  13. In the code below, what data types the variable x can have?
  14. Give file is a file object, which of the following are legal statements to create a new file.
  15. Which of the following statements are true?
  16. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  17. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  18. Which of the following represent legal flow control statements?
  19. A variable declared inside the for loop control can not be referenced out side the loop.
  20. Which of the following control expressions are valid for an if statement?
  21. class.forName(...) creates an instance of java ODBC driver
  22. Frames and applets cannot be used together in the same program.
  23. Which of the following statements are valid array declarations?
  24. A JSP file can be stored_________________
  25. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  26. What does the following line of code do?TextField text=new TextField(10);
  27. Given the codeString s = new String("abc");Which of the following calls are valid?
  28. Every method of a final in class is implicitly final.
  29. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  30. An EJB is a server-side component that encapsulates the business logic of an application