Hi Friends
I want to know that can we put main method in inner class in java. please explain it with example.
Thank you.
Main Method in Inner class in Java
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Apr 17, 2012, 12:49 AM EDT
If you try to compile this, you will be informed accordingly: