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

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. Declaring a method synchronized guarantees that the deadlock cannot occur.
  2. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  3. A Java monitor must either extend thread class or implement Runnable interface.
  4. Throwing an exception always causes program termination.
  5. Any method in a supper class can be over ridden in its subclass.
  6. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  7. When we implement the Runnable interface, we must define the method
  8. Members of a class specified as private are accessible only to the methods of the class.
  9. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  10. Which of the following statements are valid array declarations?
  11. A catch can have comma-separated multiple arguments.
  12. The use of protected keyword to a member in a class will restrict its visibility as follows:
  13. The modulus operator (%) can be used only with Integer operands.
  14. The name of the RMI compiler is ___________
  15. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  16. Which of the following control expressions are valid for an if statement?
  17. Session bean
  18. Which of the following command lines options generates documentation for all classes and methods?
  19. When the string objects are compared with ==, the result is true If the strings contain the same values.
  20. Which of the following are the wrapper classes?
  21. Give file is a file object, which of the following are legal statements to create a new file.
  22. Which of the following statements are true?
  23. Which of the following methods can be used to change the size of a size() *resize()
  24. Which of the following will produce a value of 10 if x = 9.7?
  25. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  26. Objects are passed to a method by use of call-by-reference.
  27. executeUpdate(------------) returns ___________
  28. In a single Servlet class we can use____________
  29. All the bitwise operators have the same level of precedence in Java.
  30. Java is fully object oriented programme.