java class name and file name should be same or different#javaprogramming #programming#program

preview_player
Показать описание
we are going to cover in this video class name and java file name should be different or same

If you have a public class in your Java program then it is mandatory that file name also should be same as the public class otherwise you will get error at the time of compiling the Java program

So you see with default access class, the statement file name should be same as class name in Java doesn’t hold true.
Рекомендации по теме