Home

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

A. True

B. False

You can do it
  1. Which of the following statements are valid array declarations?
  2. Frames and applets cannot be used together in the same program.
  3. Which of the following will produce a value of 22 if x=22.9:
  4. Give file is a file object, which of the following are legal statements to create a new file.
  5. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  6. Which of the following are keywords?
  7. Members of a class specified as private are accessible only to the methods of the class.
  8. A Java monitor must either extend thread class or implement Runnable interface.
  9. What is java -g used for?
  10. In order to connect to a database through java program we must create _______-
  11. Submit button always fires doPost(...)
  12. A catch can have comma-separated multiple arguments.
  13. The import statement is always the first no comment statement in a Java program files.
  14. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  15. Which of the following classes are available in the java.lang package?
  16. Consider the following class definitions: class maths { student student1; } class student { String name;…
  17. An individual array element that is passed to a method and modified in that method will contain the…
  18. A class may be both abstract and final.
  19. Objects are passed to a method by use of call-by-reference.
  20. A static class method can be invoked by simply using the name of the method alone.
  21. Every method of a final in class is implicitly final.
  22. Which of the following methods can be used to draw the outline of a square?
  23. A package is a collection of
  24. Which are the valid ways to create DataInputStream streams?
  25. All the bitwise operators have the same level of precedence in Java.
  26. When we implement an interface method, it should be declared as public.
  27. It is perfectly legal to assign a subclass object to a supper class reference.
  28. putValue(...) method takes _____________________-
  29. The name of the RMI compiler is ___________
  30. All methods in an abstract class must be declared abstract.