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. Java always provides a default constructor to a class.
  2. Throwing an exception always causes program termination.
  3. The setBackground() method is part of the class
  4. class.forName(...) creates an instance of java ODBC driver
  5. Every method of a final in class is implicitly final.
  6. Given the codeString s = new String("abc");Which of the following calls are valid?
  7. It is perfectly legal to assign a subclass object to a supper class reference.
  8. Which of the following will produce a value of 10 if x = 9.7?
  9. All methods in an abstract class must be declared abstract.
  10. The import statement is always the first no comment statement in a Java program files.
  11. Consider the following class definitions: class maths { student student1; } class student { String name;…
  12. EJBs can be of the following type(s)None of the above
  13. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  14. A string object can not be modified after it is created.
  15. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  16. The concept of multiple inheritance is implemented in Java by
  17. Which of the following methods belong to the String class?
  18. A Java monitor must either extend thread class or implement Runnable interface.
  19. A JSP file can be stored_________________
  20. The keywords reserved but not used in the initial version of Java re:
  21. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  22. With javadoc, which of the following denotes a javadoc comment?
  23. Which of the following will produce a value of 22 if x=22.9:
  24. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  25. Java is fully object oriented programme.
  26. We would like to make a member of a class visible in all subclasses regardless of what package they…
  27. Which of the following statements are true?
  28. JdbcOdbcDriver is an object of Object class
  29. The break statement is required in the default case of a switch selection structure.
  30. The name of a Java program file must match the name of the class with the extension Java.