Home

Which of the following control expressions are valid for an if statement?

A. an integer expression

B. a Boolean expression

C. either A or B

D. Neither A or B

You can do it
  1. Which of the following command lines options generates documentation for all classes and methods?
  2. Consider the following class definitions: class maths { student student1; } class student { String name;…
  3. Servlet has ___________
  4. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  5. Members of a class specified as private are accessible only to the methods of the class.
  6. We can over load methods with differences only in their return type.
  7. Which of the following control expressions are valid for an if statement?
  8. The import statement is always the first no comment statement in a Java program files.
  9. Which of the following are keywords?
  10. Which of the following statements are true?
  11. One the features of is that an array can store many different types of values.
  12. executeUpdate automatically updates data because___________
  13. The default case is always required in the switch selection structure.
  14. A JSP file can be stored_________________
  15. Which of the following are not keywords?
  16. DataInput is
  17. In order to connect to a database through java program we must create _______-
  18. It is perfectly legal to refer to any instance variable inside of a static method.
  19. All methods in an abstract class must be declared abstract.
  20. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  21. We would like to make a member of a class visible in all subclasses regardless of what package they…
  22. Session bean
  23. Any method in a supper class can be over ridden in its subclass.
  24. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  25. Which of the following classes are available in the java.lang package?
  26. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  27. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  28. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  29. Throwing an exception always causes program termination.
  30. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…