Home

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. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  2. Which of the following will produce a value of 22 if x=22.9:
  3. Which of the following statements are valid array declarations?
  4. When the string objects are compared with ==, the result is true If the strings contain the same values.
  5. With javadoc, which of the following denotes a javadoc comment?
  6. Give file is a file object, which of the following are legal statements to create a new file.
  7. Given the codeString s = new String("abc");Which of the following calls are valid?
  8. All the bitwise operators have the same level of precedence in Java.
  9. To delete a file, we can use an instance of class file.
  10. forName() is a static factory method
  11. Which javadoc tag is used to denote a comment for methods parameters?
  12. Which of the following methods belong to the String class?
  13. Frames and applets cannot be used together in the same program.
  14. It is perfectly legal to assign a subclass object to a supper class reference.
  15. Which of the following methods can be used to change the size of a size() *resize()
  16. In RMI we invoke client method from remote server
  17. Submit button always fires doPost(...)
  18. The break statement is required in the default case of a switch selection structure.
  19. A catch can have comma-separated multiple arguments.
  20. We would like to make a member of a class visible in all subclasses regardless of what package they…
  21. We can over load methods with differences only in their return type.
  22. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  23. The length of a string object 's1' can be obtained using the expression s1.length.
  24. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  25. EJBs can be of the following type(s)None of the above
  26. The concept of multiple inheritance is implemented in Java by
  27. A final class may not have any abstract method.
  28. Which exception is thrown by the read() method of InputStream class?
  29. A method declared as static can not access non-static class members.
  30. Consider the following class definitions: class maths { student student1; } class student { String name;…