Why I am getting the below error? I interchanged the class names and there was no error. : [enter image description here][1]


  [1]: http://i.stack.imgur.com/IbCWi.png

I am executing this in java 8. I tried interchanging the class name. While i did that, I also shuffled the main method. I was getting no errors. It is the only scenario where i am getting an error. I am not getting why. Please help.