answersLogoWhite

0


he message and the stacktrace are two distinct pieces of information. While the stackstrace is mandatory, the message isnt. Most exceptions deliver a message, and it is the best practice, but some just don't and there's nothing to be done to fix it.

public

void

process

()

{

try

{

System

.

out

.

println

(

"test"

);

}

catch

(

Exception

e

)

{

e

.

printStackTrace

();

}

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the meaning of the word GUI in java?

Graphical User Interface http://en.wikipedia.org/wiki/Graphical_user_interface (there is no special meaning in Java, "GUI" is universally used)


What is literal in java programming?

Literal in java are L, F, null, true, false These act as keyword(have special meaning in java) but these does'nt comes under the category of Java Keyword.


What is the meaning of a method in Java programming?

a method is a variable


What are some nicknames for coffee?

* Joe * java * 'bucket of mud' ... meaning cup of coffee


What is the meaning of the 2 in j2ee?

Java 2 Platform Enterprise Edition. The 2 means that it is Java number 2.


What does the abbreviation JAVA stand for?

The name Java is not an acronym. The Development Team of Java has just chosen this name. The name Java specifically doesn't have any meaning rather it refers to the hot, aromatic drink COFFEE.


What is the meaning of deplyoment IN JAVA?

Deployment is the process of copying the compiled Java classes to a server or client. Once deployed, the server is able to run those classes (as in Java servlets), or serve those files to clients (as in Java applets), or be executed as programs (as in Java desktop applications).


What is the meaning of stand alone apps in java?

They stand alone. Forever alone.


What is the exact meaning of rich java client platform?

A Rich Java Client Platform i.e. Rich Client Platform (RCP) is a specialized computer program anticipated for the creation of Java applications built on the Eclipse architecture.


What commands are used to prints text in java?

System.out.println("text"); or System.out.print("text"); Please note that Java is case sensitive, meaning you must match uppercase and lowercase exactly.


What is the meaning of java and how it matches to the programming language oak?

The original plan was to call the Java language "Oak", but it turned out there already was a programming language of that name, so they changed the name. Java is of course unrelated to this other "Oak" language, the one that had already reserved the name.


What are the guidelines when writing a java program?

Some simple and basic guidelines for writing java programs are:Always initialize variables before using themDo not declare unused variables especially collectionsAlways check for null before performing operations on objectsDo not catch unwanted exceptionsUse a logging mechanism instead of using printStackTrace()Use loops only when required and add proper loop termination conditionsDo not duplicate code. Try to re-use code as much as possibleAlways add comments to the methodsDo not code huge classes. Keep classes limited to 700 lines of codeetc.