Home

If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.

A. True

B. False

You can do it
  1. When we implement an interface method, it should be declared as public.
  2. A static class method can be invoked by simply using the name of the method alone.
  3. Members of a class specified as private are accessible only to the methods of the class.
  4. It is perfectly legal to assign a subclass object to a supper class reference.
  5. Which are the valid ways to create DataInputStream streams?
  6. Servlet has ___________
  7. The keywords reserved but not used in the initial version of Java re:
  8. Which key word can protect a class in package from accessibility by the classes outside the package?
  9. A final class may not have any abstract method.
  10. A panel can not be added to another panel.
  11. forName() is a static factory method
  12. Which of the following will produce a value of 10 if x = 9.7?
  13. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  14. Given the codeString s = new String("abc");Which of the following calls are valid?
  15. Which of the following will produce a value of 22 if x=22.9:
  16. Which of the following represent legal flow control statements?
  17. Declarations can appear anywhere in the body of a Java method.
  18. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  19. With javadoc, which of the following denotes a javadoc comment?
  20. All methods in an abstract class must be declared abstract.
  21. Which exception is thrown by the read() method of InputStream class?
  22. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  23. executeUpdate(------------) returns ___________
  24. Which of the following control expressions are valid for an if statement?
  25. The name of a Java program file must match the name of the class with the extension Java.
  26. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  27. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  28. The break statement is required in the default case of a switch selection structure.
  29. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  30. Every call to wait has a corresponding call to notify that will eventually end the wafting.