Answer Posted / 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 |
Post New Answer View All Answers
Explain an algorithm to find depth of a binary tree.
How many unicode characters are there?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?
What is the difference between == and === javascript?
How many characters is 16 bytes?
What is a ternary operator in java? What is an interface?
Are variables stored in ram?
Give me some null interfaces in java?
What are the string methods in java?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
Whats the difference between notify() and notifyall()?
Is java ee a framework?
What is java used for?
Which software is used for java programming?
What state does a thread enter when it terminates its processing in java programming?