Page 1 of 1

When you write a class in Java, the file name has to have the same name as the Java class. But there is a situation wher

Posted: Fri Jul 08, 2022 6:39 am
by answerhappygod
When you write a class in Java, the file name has to have thesame name as the Java class. But there is a situation where a moreclasses can be written in a Java file other than the one that isthe same as the file name. What is the rule about this? (note: wehaven’t gotten to Inner Classes in Java yet, so this answer won’tbe accepted)What’s the difference between this() and super()?Why is declaring a method abstract in a superclass better thanonly defining the method in the subclasses?