Consider the following class definitions:
 class maths { 
student student1;
class student {
String name;

This code represents:

A. an 'is a' relationship

B. a 'has a' relationship

C. both

D. neither

You can do it
  1. The setBackground() method is part of the class
  2. Which javadoc tag is used to denote a comment for methods parameters?
  3. Declarations can appear anywhere in the body of a Java method.
  4. In the code below, what data types the variable x can have?
  5. In RMI before running the client program we must start RMI Registry.
  6. What is java -g used for?
  7. The keywords reserved but not used in the initial version of Java re:
  8. Connection, Statement are interfaces and ResultSet is a class.
  9. The length of a string object 's1' can be obtained using the expression s1.length.
  10. Which of the following methods can be used to draw the outline of a square?
  11. Submit button always fires doPost(...)
  12. When we invoke repaint () for a Component, the AWT invokes the method:
  13. executeUpdate(------------) returns ___________
  14. It is perfectly legal to assign a subclass object to a supper class reference.
  15. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  16. When we implement the Runnable interface, we must define the method
  17. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  18. A final class may not have any abstract method.
  19. JdbcOdbcDriver is an object of Object class
  20. In order to connect to a database through java program we must create _______-
  21. All the bitwise operators have the same level of precedence in Java.
  22. Which of the following statements are valid array declarations?
  23. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  24. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  25. One the features of is that an array can store many different types of values.
  26. In a single Servlet class we can use____________
  27. Which of the following control expressions are valid for an if statement?
  28. We can add more than one class(es) at the time of compilation Java Beans.
  29. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  30. The methods wait() and noify() are defined in