ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Can we override main method in java .?? how ??

user-image
تم إضافة السؤال من قبل Ajit Biswakarma , Product Specialist , Cognizant Technology Solutions India Pvt. Ltd.
تاريخ النشر: 2014/05/29
Ajit Biswakarma
من قبل Ajit Biswakarma , Product Specialist , Cognizant Technology Solutions India Pvt. Ltd.

correct answer. We can't override main() method because it is a static method.

Hamza Hasan
من قبل Hamza Hasan , Backend Software Engineer , Shahid.net

No you cant, because it is a static method any kind of polymorphism, plus it's the main method where the first program excution, plus there is only one Main() method in the whole project.

مستخدم محذوف‎
من قبل مستخدم محذوف‎

No.You can't since its a static method. And polymorphism really doesn't apply to static methods. 

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟