where do you place after you did code in java
Answers were Sorted based on User's Feedback
Answer / arun
if I am wrong, you are asking, where we put our class and
java file, after coding.
It is totally depends on you. you can put in any folder.
both class file and java file can put together or separate
folder. it doesn't matter you put your source code,
because compiler only checks your class file. so if you
put your class file in some folder, you need to define java
classpath before running your code. you
but stratigies, which generally prefered by most of
developer. source code should be put in soruce folder, and
class file should be put in classes folder.
if your packege is in C:\project
then
C:\project\src\ (put java soruce file here)
C:\project\classes\ (put class file here)
and give command on cmd prompt..
C:\java -classpath C:\project\classes
so when you run your class file, it will check you classes
fodler..
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / javac
See, you can put your class files any where on hard
disk.but at the same time you have to set the path in
environmental variable for the bin folder where javac.exe
file is available.after this you can compile and run
the .class file at the location where you have stored.
| Is This Answer Correct ? | 2 Yes | 0 No |
How do you include a string in java?
Why inputstreamreader is used in java?
Explain Public static void main?
In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not????
Can u overload main()method.Give with example.
6 Answers IBM, Schimatic Technologies,
How does arrays sort work in java?
wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
Is logger a singleton?
How does split work in java?
Is zero a natural number?
Difference between Interface & Abstract class?
Why char array is favored over string for the storage of passwords?