ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Shortly, finally block is always executed. Use finally block to clean up resources, like closing db connection and etc.
Thank you sir love from odisha
Very clear.thankuu..
Thanks sir............
Sir if we write system.exit in try block then also it will execute finally block?
Hello Soham.Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
If we removed finally keyword but block is there then in that case what will happen?
Hello Priyanka.Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
It happyly compile no compilation error...
Try to run this problem in your computer 🖥️
Sir we got exception in catch block then Wt happen
Hello Naveen.Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Abnormal termination
In case 3: exception raised but not handled then why and how JVM gives information about exception raised in the try block?
Hello Bhagat Singh.Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Because if exception is not handled then the exception will be handled by default exception handler which is part of JVM only..
Shortly, finally block is always executed. Use finally block to clean up resources, like closing db connection and etc.
Thank you sir love from odisha
Very clear.thankuu..
Thanks sir............
Sir if we write system.exit in try block then also it will execute finally block?
Hello Soham.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
If we removed finally keyword but block is there then in that case what will happen?
Hello Priyanka.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
It happyly compile no compilation error...
Try to run this problem in your computer 🖥️
Sir we got exception in catch block then Wt happen
Hello Naveen.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Abnormal termination
In case 3: exception raised but not handled then why and how JVM gives information about exception raised in the try block?
Hello Bhagat Singh.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Because if exception is not handled then the exception will be handled by default exception handler which is part of JVM only..