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

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

You can do it
  1. In a single Servlet class we can use____________
  2. What is java -g used for?
  3. What does the following line of code do?TextField text=new TextField(10);
  4. A JSP file can be stored_________________
  5. The keywords reserved but not used in the initial version of Java re:
  6. A panel can not be added to another panel.
  7. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  8. A catch can have comma-separated multiple arguments.
  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. When we implement the Runnable interface, we must define the method
  12. A static class method can be invoked by simply using the name of the method alone.
  13. The programmer must explicitly create the system .in and system .out objects.
  14. Which of the following are keywords?
  15. It is an error to have a method with the same signature in both the super class and its subclass.
  16. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  17. We would like to make a member of a class visible in all subclasses regardless of what package they…
  18. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  19. Members of a class specified as private are accessible only to the methods of the class.
  20. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  21. Servlet has ___________
  22. A final class may not have any abstract method.
  23. The name of a Java program file must match the name of the class with the extension Java.
  24. Every method of a final in class is implicitly final.
  25. Declaring a method synchronized guarantees that the deadlock cannot occur.
  26. Which of the following will produce a value of 10 if x = 9.7?
  27. The use of protected keyword to a member in a class will restrict its visibility as follows:
  28. Which javadoc tag is used to denote a comment for methods parameters?
  29. An EJB is a server-side component that encapsulates the business logic of an application
  30. The length of a string object 's1' can be obtained using the expression s1.length.