where do you place after you did code in java

Answers were Sorted based on User's Feedback



where do you place after you did code in java..

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

where do you place after you did code in java..

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

Post New Answer

More Core Java Interview Questions

Explain serialization and deserialization in java?

0 Answers  


Can we split string with in java?

0 Answers  


Explain public static void main(string args[]).

0 Answers  


who can we create the object of a class? in how many ways we can create it (max 5)

2 Answers  


Does java support function overloading, pointers, structures, unions or linked lists?

0 Answers  






Hi am an mca graduate . i have done bsc maths in my degree . every company asks me why you make shift from maths group to computere field . What i need to answer?

2 Answers  


Is minecraft java edition free?

0 Answers  


Do I need java for windows 10?

0 Answers  


Which is bigger float or double java?

0 Answers  


What is methodological framework?

0 Answers  


what is the difference between applet and swing and gui application in java . What we do with the collections set and list interface

2 Answers   CTS, Phoenix Technologies,


How do you add spaces in java?

0 Answers  


Categories