Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

where do you place after you did code in java

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


Please Help Members By Posting Answers For Below Questions

Explain an algorithm to find depth of a binary tree.

1098


How many unicode characters are there?

1110


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

1148


What is the difference between == and === javascript?

1249


How many characters is 16 bytes?

1046


What is a ternary operator in java? What is an interface?

1036


Are variables stored in ram?

1062


Give me some null interfaces in java?

1115


What are the string methods in java?

1132


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

1067


Whats the difference between notify() and notifyall()?

1098


Is java ee a framework?

1027


What is java used for?

1060


Which software is used for java programming?

1081


What state does a thread enter when it terminates its processing in java programming?

1088