Home

Which key word can protect a class in package from accessibility by the classes outside the package?

A. private

B. protected

C. final

D. don't use any keyword at all(make it default)

You can do it
  1. Which javadoc tag is used to denote a comment for methods parameters?
  2. Which of the following methods can be used to remove a component from the display?
  3. We can over load methods with differences only in their return type.
  4. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  5. The name of a Java program file must match the name of the class with the extension Java.
  6. Two methods cannot have the same name in Java.
  7. Which of the following will produce a value of 22 if x=22.9:
  8. Which of the following represent legal flow control statements?
  9. The name of the RMI compiler is ___________
  10. A variable declared inside the for loop control can not be referenced out side the loop.
  11. The default case is always required in the switch selection structure.
  12. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  13. executeUpdate(------------) returns ___________
  14. The modulus operator (%) can be used only with Integer operands.
  15. Which of the following will produce a value of 10 if x = 9.7?
  16. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  17. It is an error to have a method with the same signature in both the super class and its subclass.
  18. In RMI we invoke client method from remote server
  19. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  20. Which of the following methods can be used to draw the outline of a square?
  21. Connection, Statement are interfaces and ResultSet is a class.
  22. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  23. When we implement the Runnable interface, we must define the method
  24. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  25. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  26. A panel can not be added to another panel.
  27. JdbcOdbcDriver is an object of Object class
  28. All the bitwise operators have the same level of precedence in Java.
  29. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  30. Submit button always fires doPost(...)