What is the purpose of the File class?

Answers were Sorted based on User's Feedback



What is the purpose of the File class?..

Answer / ranganathkini

The java.io.File class abstracts a filename and directory
pathnames. It provides useful methods to perform some basic
filesystem operations such as, verifying the existance of a
file, getting the absolute or relative path of a file,
verifying if a path refers to a directory or file, verifying
the permissions on a File, checking the file length,
create/remove folders, etc.

Is This Answer Correct ?    6 Yes 1 No

What is the purpose of the File class?..

Answer / ravikiran

fileclass is used to read or write data from and to the file

Is This Answer Correct ?    5 Yes 2 No

What is the purpose of the File class?..

Answer / letsapa

can be used to find information about a file, such as
whether it exist or is open, its size, and its, last
modification

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Core Java Interview Questions

how its run?

0 Answers  


What are the three types of design patterns?

0 Answers  


Why strings in java are called as immutable?

0 Answers  


When is finally block not called?

0 Answers  


Write a program based on Java script program.

0 Answers   Atos Origin,






java Technical questions asked by JPMC

0 Answers   JPMorgan Chase,


What is the use of a conditional inclusion statement in Java ?

0 Answers   Global Logic,


What is static block?

0 Answers  


What is the code inside the public void actionPerformed(ActionEvent ae) override method in Applet [ Condition:- you have one TextField and One Button , you have to enter any color name inside the TextField, when you click on Button Your background will change according to your input color name]

2 Answers   IBM,


What is return used for in java?

0 Answers  


What is synchronization? How it can be achieved?

2 Answers  


What is hasnext in java?

0 Answers  


Categories