Home

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. Any class may be inherited by another class in the same package.
  2. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  3. A package is a collection of
  4. Give file is a file object, which of the following are legal statements to create a new file.
  5. We would like to make a member of a class visible in all subclasses regardless of what package they…
  6. JSP files creates ________________
  7. An EJB is a server-side component that encapsulates the business logic of an application
  8. Session bean
  9. An individual array element that is passed to a method and modified in that method will contain the…
  10. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  11. A string object can not be modified after it is created.
  12. Servlet has ___________
  13. Frames and applets cannot be used together in the same program.
  14. The use of protected keyword to a member in a class will restrict its visibility as follows:
  15. To delete a file, we can use an instance of class file.
  16. It is perfectly legal to assign a subclass object to a supper class reference.
  17. Which of the following will produce a value of 22 if x=22.9:
  18. Consider the following class definitions: class maths { student student1; } class student { String name;…
  19. It is perfectly legal to refer to any instance variable inside of a static method.
  20. In RMI we invoke client method from remote server
  21. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  22. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  23. Objects are passed to a method by use of call-by-reference.
  24. In RMI before running the client program we must start RMI Registry.
  25. Which of the following keywords are used to control access to a class member?
  26. Every method of a final in class is implicitly final.
  27. When we implement an interface method, it should be declared as public.
  28. Connection, Statement are interfaces and ResultSet is a class.
  29. Which of the following classes are available in the java.lang package?
  30. A method declared as static can not access non-static class members.