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"
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.