Home

When we implement an interface method, it should be declared as public.

A. True

B. False

You can do it
  1. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  2. Which of the following statements are valid array declarations?
  3. Throwing an exception always causes program termination.
  4. Given the codeString s = new String("abc");Which of the following calls are valid?
  5. In a single Servlet class we can use____________
  6. The concept of multiple inheritance is implemented in Java by
  7. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  8. DataInput is
  9. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  10. In RMI we invoke client method from remote server
  11. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  12. Servlet has ___________
  13. A constructor must always invoke its supper class constructor in its first statement.
  14. The name of the RMI compiler is ___________
  15. An individual array element that is passed to a method and modified in that method will contain the…
  16. Which of the following command lines options generates documentation for all classes and methods?
  17. class.forName(...) creates an instance of java ODBC driver
  18. Declaring a method synchronized guarantees that the deadlock cannot occur.
  19. All methods in an abstract class must be declared abstract.
  20. A method declared as static can not access non-static class members.
  21. A catch can have comma-separated multiple arguments.
  22. Which are the valid ways to create DataInputStream streams?
  23. Frames and applets cannot be used together in the same program.
  24. Which exception is thrown by the read() method of InputStream class?
  25. A Java monitor must either extend thread class or implement Runnable interface.
  26. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  27. Two methods cannot have the same name in Java.
  28. We can add more than one class(es) at the time of compilation Java Beans.
  29. Which of the following control expressions are valid for an if statement?
  30. When present, package must be the first no comment statement in the file.