Any class may be inherited by another class in the same package.

A. True

B. False

You can do it
  1. Which are the valid ways to create DataInputStream streams?
  2. Which of the following statements are valid array declarations?
  3. Which of the following methods can be used to remove a component from the display?
  4. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  5. A class may be both abstract and final.
  6. putValue(...) method takes _____________________-
  7. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  8. The programmer must explicitly create the system .in and system .out objects.
  9. Which of the following represent legal flow control statements?
  10. It is perfectly legal to assign a subclass object to a supper class reference.
  11. The name of the RMI compiler is ___________
  12. Which of the following will produce a value of 10 if x = 9.7?
  13. Java is fully object oriented programme.
  14. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  15. In the code below, what data types the variable x can have?
  16. Consider the following class definitions: class maths { student student1; } class student { String name;…
  17. A Java monitor must either extend thread class or implement Runnable interface.
  18. Which of the following classes are available in the java.lang package?
  19. Which key word can protect a class in package from accessibility by the classes outside the package?
  20. A JSP file can be stored_________________
  21. A method declared as static can not access non-static class members.
  22. A final class may not have any abstract method.
  23. The setBackground() method is part of the class
  24. Which exception is thrown by the read() method of InputStream class?
  25. Which of the following are keywords?
  26. The length of a string object 's1' can be obtained using the expression s1.length.
  27. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  28. In order to connect to a database through java program we must create _______-
  29. JdbcOdbcDriver is an object of Object class
  30. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously