• Post Reply Bookmark Topic Watch Topic
  • New Topic

about File constructor  RSS feed

 
Santhi Bharath
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the purpose of the following constructor of the File class.

public File(String parent,String child){

}
or

public File(File Parent,String child){

}
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all: When you post a question on JavaRanch, carefully choose one forum.

The question you're asking doesn't have anything to do with the SCJP exam directly. Yesterday you also asked some questions which were not about SCJP in the SCJP forum. The "Java in General (Beginner)" forum is more appropriate for questions like yours. I'll move this question to that forum for you.

Please post in the SCJP forum only if your question is about the SCJP.

About your question: Lookup the documentation of the java.io.File class in the API documentation. You'll have to learn how to use that documentation; you'll need it frequently if you're programming in Java.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!