When you run a program using Java, you normally use theexecution command: >java
ID: 3613519 • Letter: W
Question
When you run a program using Java, you normally use theexecution command: >java plus (name of the program). Example: >java Welcome Would you please explain what happens if insted of theexecution command: >java plus (name of the program) youuse.....>java (name of the prograrm).class Example: >java Welcome.class When you run a program using Java, you normally use theexecution command: >java plus (name of the program). Example: >java Welcome Would you please explain what happens if insted of theexecution command: >java plus (name of the program) youuse.....>java (name of the prograrm).class Example: >java Welcome.classExplanation / Answer
If you use java Welcome.class instead ofjava Welcome You will get an error : "Exception in thread "main" java.lang.NoClassDefFoundError:Welcome/Class"