In Java, class name should be the same as the file name. Java is case sensitive, so the case should also be identical. Many beginners ignore this and face problems

MyClass.java
Java Code:
Public class MyClass
{

}