[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

JAVA Programming :: Basic Concepts - Discussion

Home > JAVA Programming > Basic Concepts > MCQs Questions Discussion

64 / 64

You have two class files name Test.class and Test1.class inside
javaproject directory.
Test.java source code is :

public class Test{
public static void main (String[] args){
System.out.println("Hello Test");
}
}
Test1.java source code is :
public class Test1{
public static void main (String[] args){
System.out.println("Hello Test1");
}
}
you have issued below commands from command prompt.
cd javaproject
java Test Test1

What is the output ?

AHello Test

BHello Test Hello Test1

CHello Test1

DRun fails - class not found

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!