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. Which of the following represent legal flow control statements?
  2. Which of the following will produce a value of 22 if x=22.9:
  3. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  4. It is perfectly legal to refer to any instance variable inside of a static method.
  5. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  6. Which of the following methods can be used to change the size of a size() *resize()
  7. The name of a Java program file must match the name of the class with the extension Java.
  8. The modulus operator (%) can be used only with Integer operands.
  9. To delete a file, we can use an instance of class file.
  10. Which are the valid ways to create DataInputStream streams?
  11. executeUpdate(------------) returns ___________
  12. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  13. A panel can not be added to another panel.
  14. The keywords reserved but not used in the initial version of Java re:
  15. A method declared as static can not access non-static class members.
  16. The setBackground() method is part of the class
  17. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  18. Which of the following command lines options generates documentation for all classes and methods?
  19. The break statement is required in the default case of a switch selection structure.
  20. Which of the following classes are available in the java.lang package?
  21. Every method of a final in class is implicitly final.
  22. The name of the RMI compiler is ___________
  23. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  24. Which of the following keywords are used to control access to a class member?
  25. Which of the following are not keywords?
  26. We would like to make a member of a class visible in all subclasses regardless of what package they…
  27. Two methods cannot have the same name in Java.
  28. Which of the following methods can be used to remove a component from the display?
  29. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  30. Any method in a supper class can be over ridden in its subclass.