Welcome Guest | Sign in | Register
Variables and Loops - Discussion Page For Q.2974 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Variables and Loops > Questions and Answers

Q: You have a java file name Test.java inside src folder of javaproject
directory.
You have also classes folder inside javaproject directory.
you have issued below command from command prompt.
cd javaproject

Which of the below command puts Test.class file inside classes folder ?
A. javac -d classes src/Test.java B. .javac Test.java
C. javac src/Test.java D. javac classes src/Test.java

Answer and Explanation

Answer:javac -d classes src/Test.java

Explanation:
The -d option lets you tell the compiler in which directory to put the .class file it
generates (d for destination)

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.