need to send exceptions to anthor method

I

islamelnaggar

Hello java guys
i'm writing multi-thread server so i need help with this topic

class testclass{
public testclass(){



}
 
R

Roedy Green

Hello java guys
i'm writing multi-thread server so i need help with this topic

class testclass{
public testclass(){

if you don't catch an exception, it automatically flows to the caller.
You must use a "throws" clause on the method header.

You an also catch an exception, repackage it and throw a new one to
pass on up the call chain.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top