Home

An EJB is a server-side component that encapsulates the business logic of an application

A. True

B. False

You can do it
  1. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  2. In a single Servlet class we can use____________
  3. Every method of a final in class is implicitly final.
  4. Which of the following will produce a value of 22 if x=22.9:
  5. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  6. The programmer must explicitly create the system .in and system .out objects.
  7. It is perfectly legal to refer to any instance variable inside of a static method.
  8. All the bitwise operators have the same level of precedence in Java.
  9. Which of the following methods can be used to draw the outline of a square?
  10. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  11. When we implement an interface method, it should be declared as public.
  12. A panel can not be added to another panel.
  13. Any class may be inherited by another class in the same package.
  14. Which of the following are not keywords?
  15. Which of the following represent legal flow control statements?
  16. Servlet has ___________
  17. It is perfectly legal to assign a subclass object to a supper class reference.
  18. The check box group class is a subclass of the component class.
  19. It is an error to have a method with the same signature in both the super class and its subclass.
  20. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  21. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  22. Which of the following methods can be used to remove a component from the display?
  23. Consider the following class definitions: class maths { student student1; } class student { String name;…
  24. Frames and applets cannot be used together in the same program.
  25. We can add more than one class(es) at the time of compilation Java Beans.
  26. Which of the following command lines options generates documentation for all classes and methods?
  27. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  28. What is java -g used for?
  29. Which of the following statements are true?
  30. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.