I have created a interface named: ABC and added the unimplemented methods to it.
Outside the interface I have created a class in same file and implemented in that class file. Now when I am trying to run a piece of code then I dont see run as Java application option though I have created object for a class
Please explain where am I going wrong
InstructorYogesh Chawla Replied on 16/07/2021
Make your class public and make the file name same as that of class name.
Don't put public access modifier in front of the interface. After this, you should get the option to run the class as java application.