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...

class test
{
private static void main(String []adsf)
{

}
}

explain me that the above code is error or exception

Answer Posted / bhargava

Code will throw exception. Because usually every stand
alone program execution should start with main method. It
should be public other wise this method doesnt exposed to
out side to run.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need data serialization?

925


What are the common uses of "this" keyword in java ?

962


Give an example of call be reference significance.

983


How many decimal digits is 64 bit?

869


What is the purpose of object oriented programming?

919


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

2105


If a variable is declared as private, where may the variable be accessed?

1000


If an object is garbage collected, can it become reachable again?

944


Can you use this() and super() both in a constructor?

930


What is a lock or purpose of locks in java?

972


What is an immutable class?

1078


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

1083


How do you create immutable object in java?

988


java Technical questions asked by JPMC

4992


whatis Home interface and Remoteinterface? with example?

1944