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

A. True

B. False

You can do it
  1. Declaring a method synchronized guarantees that the deadlock cannot occur.
  2. With javadoc, which of the following denotes a javadoc comment?
  3. When we invoke repaint () for a Component, the AWT invokes the method:
  4. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  5. A string object can not be modified after it is created.
  6. Servlet has ___________
  7. It is perfectly legal to refer to any instance variable inside of a static method.
  8. Which of the following are the wrapper classes?
  9. A static class method can be invoked by simply using the name of the method alone.
  10. When we implement an interface method, it should be declared as public.
  11. A Java monitor must either extend thread class or implement Runnable interface.
  12. A package is a collection of
  13. Which of the following command lines options generates documentation for all classes and methods?
  14. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  15. When we implement the Runnable interface, we must define the method
  16. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  17. A panel can not be added to another panel.
  18. A catch can have comma-separated multiple arguments.
  19. Which of the following keywords are used to control access to a class member?
  20. It is perfectly legal to assign a subclass object to a supper class reference.
  21. executeUpdate(------------) returns ___________
  22. Submit button always fires doPost(...)
  23. JSP files creates ________________
  24. A JSP file can be stored_________________
  25. In the code below, what data types the variable x can have?
  26. In order to connect to a database through java program we must create _______-
  27. A method declared as static can not access non-static class members.
  28. Which of the following methods can be used to change the size of a size() *resize()
  29. A final class may not have any abstract method.
  30. We can add more than one class(es) at the time of compilation Java Beans.