Home

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

A. True

B. False

You can do it
  1. What is java -g used for?
  2. Two methods cannot have the same name in Java.
  3. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  4. The break statement is required in the default case of a switch selection structure.
  5. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  6. JSP files creates ________________
  7. We can add more than one class(es) at the time of compilation Java Beans.
  8. The programmer must explicitly create the system .in and system .out objects.
  9. Any method in a supper class can be over ridden in its subclass.
  10. putValue(...) method takes _____________________-
  11. A variable declared inside the for loop control can not be referenced out side the loop.
  12. Java always provides a default constructor to a class.
  13. An EJB is a server-side component that encapsulates the business logic of an application
  14. Which of the following classes are available in the java.lang package?
  15. Which of the following represent legal flow control statements?
  16. Declaring a method synchronized guarantees that the deadlock cannot occur.
  17. Which of the following will produce a value of 22 if x=22.9:
  18. A final class may not have any abstract method.
  19. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  20. Consider the following class definitions: class maths { student student1; } class student { String name;…
  21. Any class may be inherited by another class in the same package.
  22. We can over load methods with differences only in their return type.
  23. When present, package must be the first no comment statement in the file.
  24. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  25. All methods in an abstract class must be declared abstract.
  26. When we implement an interface method, it should be declared as public.
  27. An individual array element that is passed to a method and modified in that method will contain the…
  28. With javadoc, which of the following denotes a javadoc comment?
  29. It is an error to have a method with the same signature in both the super class and its subclass.
  30. In a single Servlet class we can use____________