Give file is a file object, which of the following are legal statements to create a new file.

A. file.create();

B. FileOutputStream fos=new FileOutputStream(file);

C. FileInputStream fis=new FileInputStream(file);

D. all of the above

You can do it
  1. Two methods cannot have the same name in Java.
  2. The name of the RMI compiler is ___________
  3. The default case is always required in the switch selection structure.
  4. A string object can not be modified after it is created.
  5. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  6. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  7. Submit button always fires doPost(...)
  8. A class may be both abstract and final.
  9. To delete a file, we can use an instance of class file.
  10. The concept of multiple inheritance is implemented in Java by
  11. Which of the following command lines options generates documentation for all classes and methods?
  12. An individual array element that is passed to a method and modified in that method will contain the…
  13. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  14. We would like to make a member of a class visible in all subclasses regardless of what package they…
  15. We can add more than one class(es) at the time of compilation Java Beans.
  16. JSP files creates ________________
  17. Any method in a supper class can be over ridden in its subclass.
  18. Which of the following classes are available in the java.lang package?
  19. Consider the following class definitions: class maths { student student1; } class student { String name;…
  20. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  21. Which of the following methods belong to the String class?
  22. EJBs can be of the following type(s)None of the above
  23. Java always provides a default constructor to a class.
  24. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  25. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  26. It is perfectly legal to assign a subclass object to a supper class reference.
  27. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  28. Frames and applets cannot be used together in the same program.
  29. In the code below, what data types the variable x can have?
  30. A JSP file can be stored_________________