The use of protected keyword to a member in a class will restrict its visibility as follows:

A. Visibility only in the class and its subclasses in the same package.

B. Visibility only inside the same package.

C. Visibility in all classes in the same package and subclasses in other packages.

D. Visibility only in the class where it is declared.

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. Which of the following methods can be used to remove a component from the display?
  2. The programmer must explicitly create the system .in and system .out objects.
  3. A catch can have comma-separated multiple arguments.
  4. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  5. forName() is a static factory method
  6. Declarations can appear anywhere in the body of a Java method.
  7. A JSP file can be stored_________________
  8. In a single Servlet class we can use____________
  9. Which of the following will produce a value of 22 if x=22.9:
  10. Which of the following represent legal flow control statements?
  11. The name of the RMI compiler is ___________
  12. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  13. The methods wait() and noify() are defined in
  14. When we implement the Runnable interface, we must define the method
  15. Give file is a file object, which of the following are legal statements to create a new file.
  16. When we implement an interface method, it should be declared as public.
  17. A panel can not be added to another panel.
  18. executeUpdate automatically updates data because___________
  19. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  20. Which of the following statements are true?
  21. The import statement is always the first no comment statement in a Java program files.
  22. What does the following line of code do?TextField text=new TextField(10);
  23. Which key word can protect a class in package from accessibility by the classes outside the package?
  24. The length of a string object 's1' can be obtained using the expression s1.length.
  25. Which of the following command lines options generates documentation for all classes and methods?
  26. Consider the following class definitions: class maths { student student1; } class student { String name;…
  27. Which of the following classes are available in the java.lang package?
  28. Objects are passed to a method by use of call-by-reference.
  29. Which of the following methods can be used to change the size of a size() *resize()
  30. It is an error to have a method with the same signature in both the super class and its subclass.