Home

Consider the following statements:
int x = 10, y = 15; 
x = ((x < y) ? (y + x) : (y - x);

What will be the value of x after executing these statements?

A. 25

B. 15

C. 5

D. Error can't be executed.

You can do it
  1. Which of the following methods can be used to remove a component from the display?
  2. Connection, Statement are interfaces and ResultSet is a class.
  3. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  4. A panel can not be added to another panel.
  5. A class may be both abstract and final.
  6. In the code below, what data types the variable x can have?
  7. Java always provides a default constructor to a class.
  8. Which of the following methods can be used to draw the outline of a square?
  9. All methods in an abstract class must be declared abstract.
  10. A final class may not have any abstract method.
  11. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  12. Which of the following are keywords?
  13. An EJB is a server-side component that encapsulates the business logic of an application
  14. Session bean
  15. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  16. forName() is a static factory method
  17. The programmer must explicitly create the system .in and system .out objects.
  18. Which of the following are not keywords?
  19. executeUpdate automatically updates data because___________
  20. The import statement is always the first no comment statement in a Java program files.
  21. Which of the following will produce a value of 10 if x = 9.7?
  22. An individual array element that is passed to a method and modified in that method will contain the…
  23. The name of a Java program file must match the name of the class with the extension Java.
  24. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  25. Which are the valid ways to create DataInputStream streams?
  26. A JSP file can be stored_________________
  27. Which of the following methods can be used to change the size of a size() *resize()
  28. Which of the following will produce a value of 22 if x=22.9:
  29. The modulus operator (%) can be used only with Integer operands.
  30. The name of the RMI compiler is ___________