Skip to main content
Specific title, strip extraneous information
Source Link
David Cain
  • 17.5k
  • 14
  • 69
  • 76

exception handling in java, i am noob in programming help me Handling all exceptions

hello everyone I am new to programming. I am doingWill the below code handle any type of exception.?

try { // some code } catch(Exception e) { // some code part } 

Will this above code handle any type of exception or not?

Or should I do like this:

try { // some code } catch(type of Exception e) { // some coding stuff } 

exception handling in java, i am noob in programming help me

hello everyone I am new to programming. I am doing exception.

try { // some code } catch(Exception e) { // some code part } 

Will this above code handle any type of exception or not?

Or should I do like this:

try { // some code } catch(type of Exception e) { // some coding stuff } 

Handling all exceptions

Will the below code handle any type of exception?

try { // some code } catch(Exception e) { // some code part } 

Or should I do like this:

try { // some code } catch(type of Exception e) { // some coding stuff } 
improved formatting
Source Link
pb2q
  • 59.9k
  • 19
  • 150
  • 152

hello everyone I am new to programming. I am doing exception.

try {   // some code } catch(Exception e) {   // some code part } 

Will this above code handle any type of exception or not ?????????????
or

Or should iI do like this:

try {   // some code } catch(type of Exception e) {  // some coding stuff } 

hello everyone I am new to programming. I am doing exception.

try { some code } catch(Exception e) { some code part } 

Will this above code handle any type of exception or not ?????????????
or should i do like this

try { some code } catch(type of Exception e) { some coding stuff } 

hello everyone I am new to programming. I am doing exception.

try {   // some code } catch(Exception e) {   // some code part } 

Will this above code handle any type of exception or not?

Or should I do like this:

try {   // some code } catch(type of Exception e) {  // some coding stuff } 

hello everyone I am new to programming. I am doing exception.

try { some code } catch(Exception e) { some code part }

try { some code } catch(Exception e) { some code part } 

Will this above code handle any type of exception or not ????????????? 
or should i do like this

try { some code } catch(type of Exception e) { some coding stuff }

try { some code } catch(type of Exception e) { some coding stuff } 

hello everyone I am new to programming. I am doing exception.

try { some code } catch(Exception e) { some code part }

Will this above code handle any type of exception or not ????????????? or should i do like this

try { some code } catch(type of Exception e) { some coding stuff }

hello everyone I am new to programming. I am doing exception.

try { some code } catch(Exception e) { some code part } 

Will this above code handle any type of exception or not ????????????? 
or should i do like this

try { some code } catch(type of Exception e) { some coding stuff } 
Source Link
Loading