To delete a file, we can use an instance of class file.

A. True

B. False

You can do it
  1. Declarations can appear anywhere in the body of a Java method.
  2. Two methods cannot have the same name in Java.
  3. We can over load methods with differences only in their return type.
  4. Which of the following statements are valid array declarations?
  5. Which of the following represent legal flow control statements?
  6. class.forName(...) creates an instance of java ODBC driver
  7. A class may be both abstract and final.
  8. Java is fully object oriented programme.
  9. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  10. A string object can not be modified after it is created.
  11. The break statement is required in the default case of a switch selection structure.
  12. putValue(...) method takes _____________________-
  13. Which of the following statements are true?
  14. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  15. It is perfectly legal to refer to any instance variable inside of a static method.
  16. Which exception is thrown by the read() method of InputStream class?
  17. When present, package must be the first no comment statement in the file.
  18. Servlet has ___________
  19. The setBackground() method is part of the class
  20. In a single Servlet class we can use____________
  21. When we implement the Runnable interface, we must define the method
  22. Which of the following are not keywords?
  23. DataInput is
  24. Which of the following methods can be used to remove a component from the display?
  25. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  26. All the bitwise operators have the same level of precedence in Java.
  27. JdbcOdbcDriver is an object of Object class
  28. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  29. Members of a class specified as private are accessible only to the methods of the class.
  30. The check box group class is a subclass of the component class.