Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Willie Howell   on Sep 13 In Java Category.

  
Question Answered By: Darrell Harvey   on Sep 13

What calls main? Java calls main.

C:\>java myfile
... exceptions are output here.

You could write your own exception  handler if you wish. Lazy
programmers tend to throw everything.

It is always better to catch the error for your own benefit.

public foo() {
try {}
catch(Exception e)
{
e.printStackTrace();
}
}

It even tells you the line  number of the error! How cool is that?

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on confusion regarding throws clause Or get search suggestion and latest updates.


Tagged: