Question: how many .class files are created in java?
Answer: java file) may contain one class or more than one class. So if a . java file has more than one class then each class will compile into a separate class files.