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

Can we write a program without main() function?

Answer Posted / gandhi gorantla

Yes we can,try it
class d
{
static{
System.exit(0);
}
}
it compiles and executes without error in java.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of pointers in c?

1078


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

1155


How is a null pointer different from a dangling pointer?

1082


Is c easy to learn?

1028


What is the importance of c in your views?

1230


Explain zero based addressing.

1094


Explain the red-black trees?

1196


Add Two Numbers Without Using the Addition Operator

872


What are the header files used in c language?

1091


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

1282


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

16911


Compare and contrast compilers from interpreters.

1178


What are predefined functions in c?

1148


Write a program to print fibonacci series without using recursion?

1213


How can I prevent another program from modifying part of a file that I am modifying?

1107