Loading
Publish On: 2019-05-15

Guy white

Total Post: 819

Question: Describe the way to execute a file

Reply On: 2013-10-19

Computer Science

Total Post: 1

ANS: Describe the way to execute a file

Once the Apple. Class file is created, a the command prompt enter the following command:

Java Apple

You should see the out I’ m a fruit on your screen.

A common mistake made by a beginner is one tries to execute the class file by typing thus:

javaApple.class

This will throw the following error message:

Exception in thread “main” java. Lang.NoClassDefFoundError: Apple. Class

 

Submit Your Answer

warning: Please Login To Submit Your Answer
Like Us On Facebook for All Latest Updates