Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
munjal upadhyay
Ranch Hand
Posts: 69
Java Mac OS X Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 129
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 69
Java Mac OS X Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 129
Java Netbeans IDE Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because saving it as "M.java" will not add the .txt extension by itself.
 
naveen yadav
Ranch Hand
Posts: 384
Java MyEclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic