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 true?
  2. Consider the following class definitions: class maths { student student1; } class student { String name;…
  3. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  4. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  5. A JSP file can be stored_________________
  6. Which of the following methods can be used to draw the outline of a square?
  7. Java always provides a default constructor to a class.
  8. When the string objects are compared with ==, the result is true If the strings contain the same values.
  9. The default case is always required in the switch selection structure.
  10. The modulus operator (%) can be used only with Integer operands.
  11. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  12. A class may be both abstract and final.
  13. A static class method can be invoked by simply using the name of the method alone.
  14. The setBackground() method is part of the class
  15. DataInput is
  16. We would like to make a member of a class visible in all subclasses regardless of what package they…
  17. A string object can not be modified after it is created.
  18. The name of the RMI compiler is ___________
  19. Which of the following keywords are used to control access to a class member?
  20. A package is a collection of
  21. Which of the following will produce a value of 10 if x = 9.7?
  22. Which of the following represent legal flow control statements?
  23. The break statement is required in the default case of a switch selection structure.
  24. What is java -g used for?
  25. Given the codeString s = new String("abc");Which of the following calls are valid?
  26. Declarations can appear anywhere in the body of a Java method.
  27. It is an error to have a method with the same signature in both the super class and its subclass.
  28. Frames and applets cannot be used together in the same program.
  29. When present, package must be the first no comment statement in the file.
  30. What does the following line of code do?TextField text=new TextField(10);