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

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

متابعة

What will happen if you change the sequence of keywords(public/static/void) in main method?

user-image
تم إضافة السؤال من قبل himanshu mittal
تاريخ النشر: 2013/06/25
gagandeep kaur gagan
من قبل gagandeep kaur gagan , internship , hcl-cdc

if we change sequence public and static there is no effect on excution bu if we write public void static then exceprion can be occur

Daanish Rumani
من قبل Daanish Rumani , Product Manager , Publicis Sapient

You cannot do that for any method.
It shall result in a compile error.
I mean you cannot expect the following code to compile void public static myMethod() { }

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

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