Home

The import statement is always the first no comment statement in a Java program files.

A. True

B. False

You can do it
  1. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  2. A final class may not have any abstract method.
  3. One the features of is that an array can store many different types of values.
  4. Which key word can protect a class in package from accessibility by the classes outside the package?
  5. It is an error to have a method with the same signature in both the super class and its subclass.
  6. Which of the following represent legal flow control statements?
  7. The name of the RMI compiler is ___________
  8. The concept of multiple inheritance is implemented in Java by
  9. JSP files creates ________________
  10. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  11. A class may be both abstract and final.
  12. When we invoke repaint () for a Component, the AWT invokes the method:
  13. The use of protected keyword to a member in a class will restrict its visibility as follows:
  14. Connection, Statement are interfaces and ResultSet is a class.
  15. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  16. The import statement is always the first no comment statement in a Java program files.
  17. When we implement the Runnable interface, we must define the method
  18. Which of the following are the wrapper classes?
  19. The programmer must explicitly create the system .in and system .out objects.
  20. Consider the following class definitions: class maths { student student1; } class student { String name;…
  21. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  22. Which of the following methods can be used to remove a component from the display?
  23. A method declared as static can not access non-static class members.
  24. Any method in a supper class can be over ridden in its subclass.
  25. When the string objects are compared with ==, the result is true If the strings contain the same values.
  26. Which of the following statements are true?
  27. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  28. Which of the following statements are true?
  29. In order to connect to a database through java program we must create _______-
  30. The break statement is required in the default case of a switch selection structure.