What is the correct answer?


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

A. True

B. False

Correct Answer :

A. True

Related Questions

Which exception is thrown by the read() method of InputStream class? Declaring a method synchronized guarantees that the deadlock cannot occur. Which key word can protect a class in package from accessibility by the… Which javadoc tag is used to denote a comment for methods parameters? The check box group class is a subclass of the component class. Members of a class specified as private are accessible only to the methods… When we implement an interface method, it should be declared as public. Consider the following class definition.Class Student extends String{}What… All the bitwise operators have the same level of precedence in Java. What does the following line of code do?TextField text=new TextField(10); Which of the following control expressions are valid for an if statement? Frames and applets cannot be used together in the same program. The methods wait() and noify() are defined in What is wrong in the following class definitions? abstract class… Which of the following will produce a value of 10 if x = 9.7? An EJB is a server-side component that encapsulates the business logic… Consider the following statements: int x = 10, y = 15; x = ((x < y)… One the features of is that an array can store many different types of… In the code below, what data types the variable x can have? A Java monitor must either extend thread class or implement Runnable interface. In RMI before running the client program we must start RMI Registry. A static class method can be invoked by simply using the name of the method… To delete a file, we can use an instance of class file. A package is a collection of The use of protected keyword to a member in a class will restrict its… When we implement the Runnable interface, we must define the method Message-Driven beans act as a listener for the Java Message Service API,… Declarations can appear anywhere in the body of a Java method. Which of the following are keywords? Java always provides a default constructor to a class.