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 error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  2. Frames and applets cannot be used together in the same program.
  3. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  4. The break statement is required in the default case of a switch selection structure.
  5. Servlet can have ___________
  6. The modulus operator (%) can be used only with Integer operands.
  7. In a single Servlet class we can use____________
  8. Every method of a final in class is implicitly final.
  9. In RMI we invoke client method from remote server
  10. A catch can have comma-separated multiple arguments.
  11. Which of the following control expressions are valid for an if statement?
  12. Connection, Statement are interfaces and ResultSet is a class.
  13. Java always provides a default constructor to a class.
  14. Session bean
  15. A panel can not be added to another panel.
  16. What is java -g used for?
  17. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  18. A method declared as static can not access non-static class members.
  19. A constructor must always invoke its supper class constructor in its first statement.
  20. An EJB is a server-side component that encapsulates the business logic of an application
  21. What does the following line of code do?TextField text=new TextField(10);
  22. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  23. Servlet has ___________
  24. With javadoc, which of the following denotes a javadoc comment?
  25. The check box group class is a subclass of the component class.
  26. A Java monitor must either extend thread class or implement Runnable interface.
  27. When present, package must be the first no comment statement in the file.
  28. We can over load methods with differences only in their return type.
  29. Any method in a supper class can be over ridden in its subclass.
  30. Which of the following will produce a value of 10 if x = 9.7?