JAVA Programming :: Packages - Discussion

Home > JAVA Programming > Packages > MCQs Questions Discussion

3 / 6

Choose the correct option.

You have a class file name Test.class inside javaproject directory. source code is :
import javutil.Properties;
class Test {
public static void main (String[] args){
Properties p = System.getProperties();
you have issued below commands from command prompt.
cd javaproject
java -D key1=value1 Test
What is the output ?



CRun successfully but no output

DRun fails - javlang.NoClassDefFoundError: key1=value1

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!