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. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  2. When we implement the Runnable interface, we must define the method
  3. A constructor must always invoke its supper class constructor in its first statement.
  4. When we invoke repaint () for a Component, the AWT invokes the method:
  5. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  6. JSP files creates ________________
  7. A Java monitor must either extend thread class or implement Runnable interface.
  8. The modulus operator (%) can be used only with Integer operands.
  9. Every method of a final in class is implicitly final.
  10. Java always provides a default constructor to a class.
  11. A package is a collection of
  12. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  13. It is perfectly legal to refer to any instance variable inside of a static method.
  14. What is java -g used for?
  15. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  16. A final class may not have any abstract method.
  17. A class may be both abstract and final.
  18. The break statement is required in the default case of a switch selection structure.
  19. With javadoc, which of the following denotes a javadoc comment?
  20. Which of the following represent legal flow control statements?
  21. An individual array element that is passed to a method and modified in that method will contain the…
  22. In RMI we invoke client method from remote server
  23. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  24. Which of the following methods can be used to draw the outline of a square?
  25. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  26. Any method in a supper class can be over ridden in its subclass.
  27. Submit button always fires doPost(...)
  28. JdbcOdbcDriver is an object of Object class
  29. Which of the following statements are valid array declarations?
  30. Any class may be inherited by another class in the same package.