Which of the following is correct?
X: Java does not allow multiple inheritance using classes but it can be simulated using interfaces.
Y: Java compiler creates
.class file for every class. Java file may contain 0 or more classes. It can also contain anonymous inner classes. Compiler creates a separate file for each class.