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

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. When the string objects are compared with ==, the result is true If the strings contain the same values.
  3. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  4. The concept of multiple inheritance is implemented in Java by
  5. A variable declared inside the for loop control can not be referenced out side the loop.
  6. A final class may not have any abstract method.
  7. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  8. A class may be both abstract and final.
  9. The default case is always required in the switch selection structure.
  10. Frames and applets cannot be used together in the same program.
  11. Which exception is thrown by the read() method of InputStream class?
  12. What does the following line of code do?TextField text=new TextField(10);
  13. With javadoc, which of the following denotes a javadoc comment?
  14. DataInput is
  15. Which of the following will produce a value of 22 if x=22.9:
  16. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  17. A panel can not be added to another panel.
  18. Java is fully object oriented programme.
  19. A string object can not be modified after it is created.
  20. Which of the following statements are true?
  21. Two methods cannot have the same name in Java.
  22. To delete a file, we can use an instance of class file.
  23. Submit button always fires doPost(...)
  24. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  25. When we invoke repaint () for a Component, the AWT invokes the method:
  26. All the bitwise operators have the same level of precedence in Java.
  27. executeUpdate(------------) returns ___________
  28. Which of the following are the wrapper classes?
  29. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  30. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.