This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Sandeep! what exactly do you want to do regarding interfaces and classes. I'm going to assume you are doing this just to try everything possible with interfaces and classes, as long as you get their concepts and uses correct in the first place.
Coming back to your question - yes you can compile the program, but you can't run it as there is no main method in there. If you try a java blah, then the jvm gives a no main method error because it cant get a direct handle to the class as it is in the interface and as you may know you can't run an interface even though the main method is inside the class.
hope this helps.