GeeksforGeeks » Java specific Questions

Multiple public interfaces in a Java file

(2 posts)

Tags:

  1. learner
    guest
    Posted 6 months ago #

    It is not allowed in Java to have more than one public classs in a file. Can we have more than one public interfaces, or a public interface and a public class

  2. pavan
    guest
    Posted 4 months ago #

    no u cannot have more than one public interface in a file


Reply

You must log in to post.

RSS feed for this topic