aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes what is the difference between saving file as M.java and Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "what is the difference between saving file as M.java and "M.java" ???" Watch "what is the difference between saving file as M.java and "M.java" ???" New topic
Author

what is the difference between saving file as M.java and "M.java" ???

munjal upadhyay
Ranch Hand

Joined: Sep 18, 2010
Posts: 69

I fount too many people saving the file as "M.java"(double inverted) , they don't got any reason to do that.

I never save the file with Double Inverted...... , never get any problem.

Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

If you are saving the file through an old version of a text editor say for e.g. notepad
then saving the file as M.java will actually save the file as M.java.txt
and hence you may find people use "M.java" although not necessary everywhere.
munjal upadhyay
Ranch Hand

Joined: Sep 18, 2010
Posts: 69

Nitin Surana wrote:If you are saving the file through an old version of a text editor say for e.g. notepad
then saving the file as M.java will actually save the file as M.java.txt
and hence you may find people use "M.java" although not necessary everywhere.


when it is necessary to save as "M.java" ?
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

Because saving it as "M.java" will not add the .txt extension by itself.
naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384


In following case a text file will be created
file name M.java
save as type :.text

In following case a java file will be created
file name "M.java"
save as type :.text
 
jQuery in Action, 2nd edition
 
subject: what is the difference between saving file as M.java and "M.java" ???