Home

The name of a Java program file must match the name of the class with the extension Java.

A. True

B. False

You can do it
  1. With javadoc, which of the following denotes a javadoc comment?
  2. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  3. A static class method can be invoked by simply using the name of the method alone.
  4. putValue(...) method takes _____________________-
  5. A method declared as static can not access non-static class members.
  6. Which of the following methods can be used to draw the outline of a square?
  7. class.forName(...) creates an instance of java ODBC driver
  8. The use of protected keyword to a member in a class will restrict its visibility as follows:
  9. Servlet has ___________
  10. Two methods cannot have the same name in Java.
  11. The modulus operator (%) can be used only with Integer operands.
  12. Which of the following will produce a value of 22 if x=22.9:
  13. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  14. We can add more than one class(es) at the time of compilation Java Beans.
  15. The name of the RMI compiler is ___________
  16. Consider the following class definitions: class maths { student student1; } class student { String name;…
  17. In the code below, what data types the variable x can have?
  18. JSP files creates ________________
  19. A constructor must always invoke its supper class constructor in its first statement.
  20. Which of the following statements are valid array declarations?
  21. All methods in an abstract class must be declared abstract.
  22. Declarations can appear anywhere in the body of a Java method.
  23. In RMI before running the client program we must start RMI Registry.
  24. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  25. Java is fully object oriented programme.
  26. Any class may be inherited by another class in the same package.
  27. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  28. A panel can not be added to another panel.
  29. Which are the valid ways to create DataInputStream streams?
  30. Connection, Statement are interfaces and ResultSet is a class.