0

is it true

There is constraint in java while using a public , that a file with Java source code can only contain one public class whose name must also match with the filename

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by verruckt24
0

Yes it is.
I would have liked you to first having gone through the langauge documentation, since this is something that even the very first program requires you would have found this immediately and also learnt a few things with that. Search your question on the internet first if you do not get a satisfactory answer only then post it here.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.