Is there is any error if you have multiple main methods in
the same class?

Answer Posted / jhonty

this is called data hiding.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

549


Why java is secure? Explain.

577


What is the functionality of the stub?

558


Can an interface have a class?

553


How do you achieve polymorphism in java?

507






What kind of variables a class can consist of?

622


What are the new features in java 8?

551


Can we change the value of static variable?

481


What if constructor is protected in java?

546


Does unicode support all languages?

507


What do you mean Abstraction in java?

593


Java is Pass by Value or Pass by Reference?

610


What is serialization in java?

547


Why do we need array in java?

522


What language is an assembler written in?

539