During java learning we are doing some command mistakes.I also do !!

That provide me motivation to write this blog so other developers do not like to west there time and focus on core logic.

Problem:

> javac Demo

C:\Users\JavaDeveloperZone\Desktop>javac Demo
error: Class names, 'Demo', are only accepted if annotation processing is explicitly requested
1 error

Solution:

When we are compile have program at that time we need pass .java extension of file. like

javac demo.java

Was this post helpful?
Let us know, if you liked the post. Only in this way, we can improve us.
Yes
No

Leave a Reply

Your email address will not be published. Required fields are marked *