Who Knows All.. ?

If the answer is No one. Then this blog is for U. I'm going to put all the things I know in Java

Why we use main() method in every application?

(This is a simple question. you can answer it  like a striking bullet(straight to the point).)


To start an application we need to use a main() method.
There are two uses of main() method

  • to test your real class(where you have written the actual code class)
  • to launch/start your java application.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on November 2, 2011 by in Uses of main method.
%d bloggers like this: