Java only making .class file but not running program -


this question has answer here:

enter image description here

only making .class file not running program.

class shayan {    public static void main(string args[])     {       system.out.println("shayan");    } } 

your class not declared public. additionally convention in java start classes upper case letter - should called shayan.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -