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

A. True

B. False

You can do it
  1. Which of the following will produce a value of 10 if x = 9.7?
  2. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  3. JdbcOdbcDriver is an object of Object class
  4. forName() is a static factory method
  5. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  6. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  7. Which of the following methods can be used to change the size of a size() *resize()
  8. Given the codeString s = new String("abc");Which of the following calls are valid?
  9. Which of the following statements are valid array declarations?
  10. Declarations can appear anywhere in the body of a Java method.
  11. The length of a string object 's1' can be obtained using the expression s1.length.
  12. In the code below, what data types the variable x can have?
  13. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  14. What does the following line of code do?TextField text=new TextField(10);
  15. When we invoke repaint () for a Component, the AWT invokes the method:
  16. The setBackground() method is part of the class
  17. Which of the following command lines options generates documentation for all classes and methods?
  18. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  19. In order to connect to a database through java program we must create _______-
  20. Which of the following methods belong to the String class?
  21. An EJB is a server-side component that encapsulates the business logic of an application
  22. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  23. Two methods cannot have the same name in Java.
  24. The concept of multiple inheritance is implemented in Java by
  25. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  26. One the features of is that an array can store many different types of values.
  27. Java always provides a default constructor to a class.
  28. Which of the following are keywords?
  29. All the bitwise operators have the same level of precedence in Java.
  30. Objects are passed to a method by use of call-by-reference.