What is a File class?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is a File class?

Rating:

A File class is used to access the file and directory objects. This class provides numerous access methods for performing all common file and directory operations. These methods enable files and directories to be created, deleted, renamed, and listed. However, the File class does not provide any method to change the current directory. The File class is useful only for querying and modifying the attributes of a file. It does not have any method for reading from and writing to a file. The File class has the following three constructors:

  • File(File parent, String child)
    This constructor will create a new File instance from a parent abstract pathname and a child pathname.
  • File(String Path)
    This constructor will create a new File instance by converting the given pathname into an abstract pathname.
  • File(String parent, String child)
    This constructor will create a new File instance from a parent pathname and a child pathname.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.