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

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,275
Latest member
Michaelachoda

Latest Threads

Top