Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Leon Hansen   on Apr 01 In Java Category.

  
Question Answered By: Lily Brown   on Apr 01

The answer to ur compilation whoes is because the Java
Specification expects only a single public  class in a
.java file. You may have any number of classes in a
java file  but there can only be one public class  in a
.java file and the name of the public class and the
file name should be the same...

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Weird javac compile error Or get search suggestion and latest updates.


Tagged: