In this video, I have explained how can we have file name different from class name in java. This is one of the biggest myth in java that it's mandatory to have class name and file name same.
Topics Discussed:
$ Compile Error When Class Name is Not Same as File Name
$ Access Modifiers Applicable at the Top Level
$ File or Class :: What We Compile & What We Run
$ How to Have Class Name Different From File Name
$ How to Have Interface Name Different From File Name
$ How to Have Enum Name Different From File Name
$ Best Practice to Follow For File Name and Class Name
🎬 Can a Java File Have More Than One Class? | Access Modifiers in Java:
• Can a Java File Have More Than One Class? ...
🎬 Java - Conceptual & Interview Questions:
• Java - Conceptual & Interview Questions
🎬 Git - Concepts & Interview Questions:
• Git - Conceptual & Interview Questions
🎬Watch my most recent videos: / @automationelearn
🎬 YouTube Channel:
/ @automationelearn
#java #javamyth #javainterviewquestions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔴 My YouTube Gears (I Use to Make Videos)
✔️ Recording Mic - https://amzn.to/3hXR6l2
✔️ Laptop - https://amzn.to/3MTCb9U
✔️Microphone Stand - https://amzn.to/3MIsJ9b
✔️ Bluetooth Extendable Selfie Stick - https://amzn.to/3t5G5nW
~~~~~~~~~~~~~~~~~~
Visit, Subscribe, and Share the Knowledge using the below links:
/ @automationelearn
Auf dieser Seite können Sie das Online-Video Can Class Name and File Name be Different In Java? | Biggest Myth | Java Interview Question mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Automation eLearn 04 Januar 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,700 Mal angesehen und es wurde von 38 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!