can we override the main() method in java????

Answer Posted / zameer

Yes we can override the main() method in java but that main() method are not declare static keyword.
If main() method is static then we can not override

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do you mean by classloader?

537


In java, what is the difference between method overloading and method overriding?

570


What is append function?

552


What is printwriter in java?

501


What is a flag and how does it work?

491






explain local datetime api in java8?

545


Can we change the value of static variable?

481


How big is a 64 bit float?

526


What are the benefits of java?

560


What is the difference between hashmap and hashtable? What is an interface?

487


What is bufferedwriter?

529


Why do we need singleton?

523


What is array length in java?

513


what is collatration?

2729


Add a value x to array from index l to r where 0 <= l <= r <= n-1

612