|
|
Re: JAVA NEWBIE
|
Posted: Jan 24, 2006 6:57 PM
|
|
I will try to answer most/all of your questions, please post again if I need to clarify anything further.
>How does a JAVA program get into executable format? This is asked quite regularly here, I believe it has been asked three times this month already. Please look at some of the older posts here, I do not believe you will have trouble finding an answer to this question.
>What is the command to compile a JAVA program? The most basic command is just javac HelloWorld.java, where HelloWorld.java is the actual name of your source code. Be aware that javac is case sensitive on the file names, and your class name and file must match exactly!
>What is the command to view the result of a compiled JAVA Cdoe? Do you mean run the resulting file that was compiled/interpreted or actual viewing the contents?
How do you comment a line in JAVA? How do you comment several lines at a time in JAVA? >// is used to comment a line, where /* and */ are used to comment multiple lines.
|
|