Did I can set my Java public class name as 'x'?
Answers
Answered by
0
Yes , of course.
Please mark me as Brainliest.
Answered by
0
Answer:
hey ! here is my answer for your question
Explanation:
yes , you can save or set you Java public class name with any other name (like as x,y,z). not same as your class name but when you compil it with your file name will be same as your class name. And you have compile and run a class with different name other than the filename, If you don't have any public methods in this class.
I hope it will helps you
Similar questions