Home

When present, package must be the first no comment statement in the file.

A. True

B. False

You can do it
  1. The length of a string object 's1' can be obtained using the expression s1.length.
  2. Which of the following statements are true?
  3. Which are the valid ways to create DataInputStream streams?
  4. forName() is a static factory method
  5. The use of protected keyword to a member in a class will restrict its visibility as follows:
  6. Servlet has ___________
  7. Which of the following are not keywords?
  8. Java is fully object oriented programme.
  9. A method declared as static can not access non-static class members.
  10. Any method in a supper class can be over ridden in its subclass.
  11. We would like to make a member of a class visible in all subclasses regardless of what package they…
  12. When we invoke repaint () for a Component, the AWT invokes the method:
  13. Which of the following represent legal flow control statements?
  14. It is perfectly legal to assign a subclass object to a supper class reference.
  15. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  16. All the bitwise operators have the same level of precedence in Java.
  17. What does the following line of code do?TextField text=new TextField(10);
  18. To delete a file, we can use an instance of class file.
  19. The default case is always required in the switch selection structure.
  20. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  21. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  22. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  23. It is an error to have a method with the same signature in both the super class and its subclass.
  24. Which of the following are keywords?
  25. Which exception is thrown by the read() method of InputStream class?
  26. Which of the following command lines options generates documentation for all classes and methods?
  27. The keywords reserved but not used in the initial version of Java re:
  28. An EJB is a server-side component that encapsulates the business logic of an application
  29. We can add more than one class(es) at the time of compilation Java Beans.
  30. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…