+ 2

Why is the name of .java file equal to the name of the public class?

20th Jun 2020, 4:23 PM
Tannishtha Sengupta
Tannishtha Sengupta - avatar
2 odpowiedzi
0
It's required by the compiler. Why they implemented it so you'd have to ask the first developers of Java. But from my point of view it is just there most simple and intuitive solution to implement that. Did that similar in the implementation of a test framework.
20th Jun 2020, 5:35 PM
Sandra Meyer
Sandra Meyer - avatar