Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Files Names

 
raji alluru
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a java file begin with a numeric value....?If so give me an example...
 
Vinayagar Karpagam
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont think a java file can begin with a number but a java file name can start with a number.
 
raji alluru
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give me an example.....
 
santhosh Gopalakrishna Bajja
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
class san
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}

save the file as 123.java

javac 123.java

Compilation sucess

u can't run 4 sure..


santhosh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic