Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What happens when a main method is declared as private?

Answer Posted / milanjeet singh

When we define main method as private, it will compile but when run, it show an Error as: main method is not found in the class, please define the main method as public static void main (String[] args)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between preemptive scheduling and time slicing?

1109


What is string english?

1072


What is jpa specification?

1031


What is private static class in java?

1062


Can a method be overloaded based on different return type but same argument type?

1017


What is a void method java?

1008


What is a marker interface?

1226


How big is a boolean?

1094


How many bytes is a string?

1180


What is the main difference between java platform and other platforms?

1178


How does split work in java?

1103


What is the difference between interface & abstract class?

1087


What is the technique adopted to create an immutable class?

1191


Write java program to reverse string without using api?

1117


Is it necessary for the port addresses to be unique? Explain with reason.

1056