Answers for "why we don't have to use try catch in kotlin"

3

try catch kotlin

try{
  // wirte here somethin that you thought it would throw expection
}
catch(e:Expection){ 
  e.printstacktrace() 
  // handle expection or write upper line of code
}
finally{
	// this block is optional 
  	// this will always run if expection come or not
}
Posted by: Guest on November-13-2021

Code answers related to "why we don't have to use try catch in kotlin"

Browse Popular Code Answers by Language