Home

Which of the following are keywords?

A. integer

B. default

C. Boolean

D. Object

You can do it
  1. All methods in an abstract class must be declared abstract.
  2. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  3. It is an error to have a method with the same signature in both the super class and its subclass.
  4. The setBackground() method is part of the class
  5. In order to connect to a database through java program we must create _______-
  6. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  7. A constructor must always invoke its supper class constructor in its first statement.
  8. Which of the following methods can be used to draw the outline of a square?
  9. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  10. Throwing an exception always causes program termination.
  11. Two methods cannot have the same name in Java.
  12. putValue(...) method takes _____________________-
  13. We would like to make a member of a class visible in all subclasses regardless of what package they…
  14. The keywords reserved but not used in the initial version of Java re:
  15. The concept of multiple inheritance is implemented in Java by
  16. Give file is a file object, which of the following are legal statements to create a new file.
  17. In RMI we invoke client method from remote server
  18. To delete a file, we can use an instance of class file.
  19. Which javadoc tag is used to denote a comment for methods parameters?
  20. What is java -g used for?
  21. Any class may be inherited by another class in the same package.
  22. The length of a string object 's1' can be obtained using the expression s1.length.
  23. Which of the following are keywords?
  24. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  25. An EJB is a server-side component that encapsulates the business logic of an application
  26. A final class may not have any abstract method.
  27. When present, package must be the first no comment statement in the file.
  28. All the bitwise operators have the same level of precedence in Java.
  29. Which of the following methods can be used to change the size of a size() *resize()
  30. Connection, Statement are interfaces and ResultSet is a class.