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

You can do it
  1. class.forName(...) creates an instance of java ODBC driver
  2. Which of the following will produce a value of 22 if x=22.9:
  3. JdbcOdbcDriver is an object of Object class
  4. The keywords reserved but not used in the initial version of Java re:
  5. Which of the following are keywords?
  6. Which of the following methods can be used to remove a component from the display?
  7. Which key word can protect a class in package from accessibility by the classes outside the package?
  8. putValue(...) method takes _____________________-
  9. A constructor must always invoke its supper class constructor in its first statement.
  10. It is perfectly legal to assign a subclass object to a supper class reference.
  11. In RMI we invoke client method from remote server
  12. A panel can not be added to another panel.
  13. What is java -g used for?
  14. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  15. We can over load methods with differences only in their return type.
  16. The setBackground() method is part of the class
  17. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  18. With javadoc, which of the following denotes a javadoc comment?
  19. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  20. DataInput is
  21. The name of a Java program file must match the name of the class with the extension Java.
  22. Which of the following are not keywords?
  23. A class may be both abstract and final.
  24. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  25. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  26. Consider the following class definitions: class maths { student student1; } class student { String name;…
  27. In the code below, what data types the variable x can have?
  28. Given the codeString s = new String("abc");Which of the following calls are valid?
  29. A static class method can be invoked by simply using the name of the method alone.
  30. Every method of a final in class is implicitly final.