In the code below, what data types the variable x can have?

A. byte b1 = 5;

B. byte b2 = 10;

C. x = b1 * b2;

D. int short

You can do it
  1. When we invoke repaint () for a Component, the AWT invokes the method:
  2. Which of the following methods belong to the String class?
  3. A JSP file can be stored_________________
  4. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  5. In order to connect to a database through java program we must create _______-
  6. Objects are passed to a method by use of call-by-reference.
  7. Java always provides a default constructor to a class.
  8. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  9. Throwing an exception always causes program termination.
  10. A method declared as static can not access non-static class members.
  11. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  12. In RMI before running the client program we must start RMI Registry.
  13. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  14. In a single Servlet class we can use____________
  15. Any method in a supper class can be over ridden in its subclass.
  16. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  17. Which of the following control expressions are valid for an if statement?
  18. Session bean
  19. The concept of multiple inheritance is implemented in Java by
  20. Declarations can appear anywhere in the body of a Java method.
  21. Which of the following represent legal flow control statements?
  22. Servlet can have ___________
  23. The programmer must explicitly create the system .in and system .out objects.
  24. A class may be both abstract and final.
  25. Which of the following are keywords?
  26. We can over load methods with differences only in their return type.
  27. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  28. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  29. Submit button always fires doPost(...)
  30. putValue(...) method takes _____________________-