This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "File" Watch "File" New topic
Author

File

ravindrababu annam
Greenhorn

Joined: Feb 02, 2006
Posts: 3
Plz., could any body tell me how internally it is accepting the file name
when i am creating a object for

File f=new File("Hello.txt");
as Hello.txt is a String how it is accepting as a file name

need of detail information
Thanks
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Perhaps you could ask your question a different way; how else would a file name be represented?


[Jess in Action][AskingGoodQuestions]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: File