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. A Java monitor must either extend thread class or implement Runnable interface.
  2. Which of the following methods belong to the String class?
  3. When we implement an interface method, it should be declared as public.
  4. Which of the following statements are true?
  5. Objects are passed to a method by use of call-by-reference.
  6. Which of the following methods can be used to draw the outline of a square?
  7. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  8. The break statement is required in the default case of a switch selection structure.
  9. A method declared as static can not access non-static class members.
  10. To delete a file, we can use an instance of class file.
  11. Java is fully object oriented programme.
  12. The check box group class is a subclass of the component class.
  13. Which key word can protect a class in package from accessibility by the classes outside the package?
  14. Which of the following methods can be used to remove a component from the display?
  15. The modulus operator (%) can be used only with Integer operands.
  16. Which exception is thrown by the read() method of InputStream class?
  17. A JSP file can be stored_________________
  18. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  19. Given the codeString s = new String("abc");Which of the following calls are valid?
  20. What is java -g used for?
  21. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  22. Which javadoc tag is used to denote a comment for methods parameters?
  23. class.forName(...) creates an instance of java ODBC driver
  24. The default case is always required in the switch selection structure.
  25. Which of the following command lines options generates documentation for all classes and methods?
  26. Which of the following statements are valid array declarations?
  27. executeUpdate automatically updates data because___________
  28. All the bitwise operators have the same level of precedence in Java.
  29. A class may be both abstract and final.
  30. Declaring a method synchronized guarantees that the deadlock cannot occur.