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 :
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 ?
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 ::
No Discussion on this question yet!