Exception Handling Interview questions and answers in Java | Part -1 | Code Decode

  Рет қаралды 199,411

Code Decode

Code Decode

3 жыл бұрын

In this video of code decode we have covered all important Exception Handling Interview questions in Java for freshers and experienced
Udemy Course of Code Decode on Microservice k8s AWS CICD link:
openinapp.co/udemycourse
Course Description Video :
yt.openinapp.co/dmjvd
Exception Handling part 2 : • Exception handling Int...
Q) What is an exception?
The exception is an abnormal condition that occurs during the execution of a program and disrupts the normal flow of the program. If not handled properly it can cause the program to terminate abruptly.
Q) How do we handle exceptions in Java
Try
Encloses set of statements which can throw exception hence are required to be monitored.
Catch
When exception occur, this block catches that exception and work accordingly to handle it or to throw it as required.
Finally
This block gets executed always regardless of exception occurrence. Hence clean up is done here.
Q) Difference between Exception VS Error
Exception
We can recover from exception using try catch block or using throw
Compiler will have knowledge about checked Exceptions hence Compiler will force you to use try-catch blocks
Exceptions are related to application
Exceptions include both checked as well as unchecked type.
Exceptions in java are of type java.lang.Exception.
Error
Recovering from Error is not possible
Compiler will not have any knowledge about unchecked exceptions and Errors
Errors are related to environment where application is running
All errors in java are unchecked type
Errors in java are of type java.lang.Error.
Q) Can we write only try block without catch and finally blocks?
No. either catch or finally is must.
if no then what error will come?
Answer : compile time error saying “insert finally to complete try statement” like this:
Q) Can we write any other statements between try catch or finally block?
No. Try must be followed directly by either catch or finally.
Q) Does remaining statements in try block executes after exception occurs.
No. if exception occurs at a particular point in try block then all statements after that statement where exception is occurred will not be execute and the flow goes directly to either catch block if there is any or else program terminates. Hence we need finally block to do all clean up like closing files or removing locks.
Q) What Is the Difference Between Throw and Throws Keywords in Exception Handling in java?.
Throw
Java throw keyword is used to explicitly throw an exception.
Checked exception cannot be propagated using throw only.
Throw is used within the method.
You cannot throw multiple exceptions.
Throws
Java throws keyword is used to
declare an exception.
Checked exception can be propagated with throws.
Throws is used with the method signature.
You can declare multiple exceptions.
Q) What Happens When an Exception Is Thrown by the Main Method?
When an exception is thrown by main() method, Java Runtime terminates the program and prints the exception message and the stack trace in-system console.
Q) What do you understand by unreachable catch block error.
This error comes when you keep super classes first and sub classes later. Like here We kept Exception which is parent of NullPointer Exception first.
Hence the order of catch blocks must be from most specific to most general ones.
-------------------------------------------------------------------------------------------------------------------------------------
Code Decode Playlists
Most Asked Core Java Interview Questions and Answers : • Core Java frequently a...
Advance Java Interview Questions and Answers : • Advance Java Interview...
Java 8 Interview Questions and Answers : • Java 8 Interview Quest...
Hibernate Interview Questions and Answers : • Hibernate Interview Qu...
Spring Boot Interview Questions and Answers : • Advance Java Interview...
Angular Playlist : • Angular Course Introdu...
GIT : • GIT
-------------------------------------------------------------------------------------------------------------------------------------
Subscriber and Follow Code Decode
Subscriber Code Decode : kzfaq.info?...
Linkedin : / codedecodeyoutube
Instagram : / codedecode25
--------------------------------------------------------------------------------------------------------------------------------------
#ExceptionHandlingInterviewQuestionsInJava
#ExceptionHandlingHandlingInterviewQuestionsForExperiencedInJava
#javainterviewquestionsandanswers #codedecode

Пікірлер: 268
@rishikachowdarypotturu3488
@rishikachowdarypotturu3488 3 жыл бұрын
Great content...Upto the point.... Looking for many more to come on the channel 👏
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Rishika for the nice words....
@hansirawat9322
@hansirawat9322 3 жыл бұрын
Thanks for sharing.
@aasimahsan6167
@aasimahsan6167 9 ай бұрын
great explanation cleared all the doubt and also gained confidence
@CodeDecode
@CodeDecode 8 ай бұрын
thanks
@kanchanyasita8272
@kanchanyasita8272 3 жыл бұрын
Java 7 and beyond, try with resources allows to skip writing the catch as well as finally and closes all the resources being used in try-block itself. Any object that implements java.lang.AutoCloseable, which includes all objects which implement java.io.Closeable, can be used as a resource. See this code example static String readFirstLineFromFile(String path) throws IOException { try (BufferedReader br = new BufferedReader(new FileReader(path))) { return br.readLine(); } }
@luckyyadav5540
@luckyyadav5540 3 жыл бұрын
very nice Discuss
@sandhyarajkumar8597
@sandhyarajkumar8597 2 жыл бұрын
Your explanation is amazing...to the point...understandable...keep making such videos...😊
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks a lot Sandhya 🙂👍
@prisha1729
@prisha1729 3 жыл бұрын
Please upload videos on advance exception handling and try with reassures as well. Your videos are great for interview preps. Thanks
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure will upload soon
@divsreviews2860
@divsreviews2860 Жыл бұрын
Hello Mam, You made Java Developer's life easy,, Thank you so much for your dedication towards Java Developer ✌️🙏🏻.. God Bless you 😊
@CodeDecode
@CodeDecode Жыл бұрын
❤❤Thanks a lot 🙂
@prikansiyadav436
@prikansiyadav436 3 жыл бұрын
Your explanation is really very helpful ❤️ Thank you so much
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 👍👍
@mohantyfamily1521
@mohantyfamily1521 2 жыл бұрын
Many thanks for making such wonderful videos and this really help people to Crack an interview. Please make videos on exception handing with real time scenarios along with garbage collector.
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure, nice topic. We will create videos on that too soon 👍👍
@vibhorgoel4614
@vibhorgoel4614 3 жыл бұрын
Outstanding work done... Watching all your videos for learning. Expecting more soon.. Good Job
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure will upload more soon.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks
@muchukundareddy5315
@muchukundareddy5315 2 жыл бұрын
Could you please tell me in which scenario we will create customized checked exception and in which scenario we will create customized unchecked exception?
@shubhamtagalpallewar7125
@shubhamtagalpallewar7125 3 жыл бұрын
Thank you ma'am, was waiting for this video...
@CodeDecode
@CodeDecode 3 жыл бұрын
Hope it helps :)
@AjeetSingh-hs2ec
@AjeetSingh-hs2ec Жыл бұрын
Hello, Can we use multi catch block in Java 8 and above also. Thanks in advance
@mnishi2780
@mnishi2780 3 жыл бұрын
Great content...They r really helpful...Concept is very clear...U r sharing ur knowledge with us...It is appreciable madam...Thanks alot ...pls upload advanced exception handling interview questions
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Nishi, we will upload them soon 👍🙃
@reddaboinavasista4166
@reddaboinavasista4166 6 ай бұрын
Very Underrated youtuber. Deserves more subscribers.
@CodeDecode
@CodeDecode 6 ай бұрын
Means a lot us 🙏
@aayushiagarwal3663
@aayushiagarwal3663 3 жыл бұрын
Thank you for such good videos. I have watched your other java videos which came out useful for me
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks for the nice words 👍
@vishalcoder4964
@vishalcoder4964 3 жыл бұрын
Helps a lot. Thank you @Code Decode
@CodeDecode
@CodeDecode 3 жыл бұрын
M glad it helps
@abiultimate
@abiultimate 2 жыл бұрын
Superb
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Abirami 🙂👍
@ayushman_19
@ayushman_19 Жыл бұрын
Please continue this exception handling series
@CodeDecode
@CodeDecode Жыл бұрын
Sure Ayushman 👍👍
@rahulnigam7529
@rahulnigam7529 2 жыл бұрын
@10.36 - question must prepare , its always ask in interview . Nice video
@CodeDecode
@CodeDecode 2 жыл бұрын
Yes it is. Nice observation Rahul 👏👏👏👏👏
@raghurambodapati6769
@raghurambodapati6769 3 жыл бұрын
Hi, your interview questions are very good and helpful, I want you to make an video on Generics concept and also on Java 8 feature interview questions
@CodeDecode
@CodeDecode 3 жыл бұрын
sure in next video i will capture java 8 interview questions
@chenchaiahmalli6234
@chenchaiahmalli6234 3 жыл бұрын
Very nice and clear explanation Mam...Its very helpful...Keep it up.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 👍
@shamukakhamari4661
@shamukakhamari4661 3 жыл бұрын
Please make videos on thread interview questions . your explanations are really amazing.👍
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Shamuka 👍. Sure will create a video on multithreading
@praveenraj3721
@praveenraj3721 3 жыл бұрын
this video is very helpful and as you said you need to extend this video to intermediate and advanced level.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure will make it soon
@aaaaaaaa3811
@aaaaaaaa3811 3 жыл бұрын
very nice and awesone explanation.👌👌👌....keep doing more n more videos like this mam.....hatsoff to u...
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 👍👍
@prithvisingh40
@prithvisingh40 3 жыл бұрын
Advanced exception handling will be helpful
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure
@sukunkusum1720
@sukunkusum1720 2 жыл бұрын
Hi Team CodeDecode! hope you are fine. excellent video as usual. Please make a video on try with resources and exception chaining!
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Sukun, we will do that soon 👍🙂
@Hare_Krishna143
@Hare_Krishna143 2 жыл бұрын
Such helpful content!!! Appreciate
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks for the nice words Manoj
@priyapandian8655
@priyapandian8655 3 жыл бұрын
Very useful and I like to get some advanced question in exception also
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure will make part 2 soon
@ravirajsaraganachari3038
@ravirajsaraganachari3038 3 жыл бұрын
Content is so valuable, Tq 🤗
@CodeDecode
@CodeDecode 3 жыл бұрын
👍
@parthec1
@parthec1 2 жыл бұрын
thanks for informative video,,
@CodeDecode
@CodeDecode 2 жыл бұрын
Anytime Parth 🙂👍
@keerthu7055
@keerthu7055 11 ай бұрын
Great mam
@CodeDecode
@CodeDecode 11 ай бұрын
Thanks
@dystopianNinja1289
@dystopianNinja1289 3 жыл бұрын
Thanks for all of these videos
@CodeDecode
@CodeDecode 3 жыл бұрын
You are welcome........
@kazaasekhar
@kazaasekhar 2 жыл бұрын
thank you very good explaination
@CodeDecode
@CodeDecode 2 жыл бұрын
You are welcome!
@nirmalvaidhyanathanr1299
@nirmalvaidhyanathanr1299 3 жыл бұрын
Explanation is very good and please upload advanced exception handling questions
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍
@abhijeetw693
@abhijeetw693 Жыл бұрын
Yes,plz create video on try with resource
@CodeDecode
@CodeDecode Жыл бұрын
sure we will create it soon
@BhushanRawoolShridhar
@BhushanRawoolShridhar 3 жыл бұрын
You are really doing a great job
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 🙏🙏
@sureshgarine
@sureshgarine 3 жыл бұрын
thank you madam, please continue advanced questions on exception handling
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Suresh 👍👍
@hemashilpa3954
@hemashilpa3954 2 жыл бұрын
Great content..please upload advanced level exception handling interview questions
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Hema 👍👍
@kalpeshmahagaonkar2145
@kalpeshmahagaonkar2145 3 жыл бұрын
All the interview questions are very helpful. Please cover the Intermediate and Advance level of questions also. I have watched all your videos. Your efforts are highly appreciate.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Kalpesh. It means a lot 🙏👍
@arlynsneha5052
@arlynsneha5052 2 жыл бұрын
Wonderful video mam 🤩🤩🤩🤩🤩. Mam plz do intermediate exception handling questions too.
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Sneha, we will do that👍👍
@rudrarajusowmya8943
@rudrarajusowmya8943 2 жыл бұрын
Firstly thanks for this tutorial. Can you cover the Intermediate and Advance level of questions also. It will be helpful
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Sowmya, we will do that👍👍
@nehaladva256
@nehaladva256 2 жыл бұрын
please provide video link for Intermediate and Advance level of questions
@solankijigar11
@solankijigar11 3 жыл бұрын
Great job, thanks!!!!!
@CodeDecode
@CodeDecode 3 жыл бұрын
You are welcome....
@vinothkumarg7731
@vinothkumarg7731 3 жыл бұрын
Very useful Pls upload more on that
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure thanks 😊
@lavsharma3441
@lavsharma3441 2 жыл бұрын
Nice and easy explanation Thanks ma'am
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks 🙂👍
@technicalfarmer4462
@technicalfarmer4462 2 жыл бұрын
Explained very nicely
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks 😊👍
@azimrahman3584
@azimrahman3584 3 жыл бұрын
More interview questions of exception handling upload it
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure
@PinakGanguly12rocks
@PinakGanguly12rocks 2 жыл бұрын
Thanks for such a great video.Request you to also make a intermediate level Exception handling interview video content.
@CodeDecode
@CodeDecode 2 жыл бұрын
sure we will create video on it soon
@bharukatta
@bharukatta 2 жыл бұрын
Superb.Thank uu
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks
@rajashekarj3313
@rajashekarj3313 2 жыл бұрын
Wonderful 🙏😍
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks
@nandiniverma6127
@nandiniverma6127 3 жыл бұрын
❤️ helpful
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Nandini 👍👍
@sougatabanerjee8832
@sougatabanerjee8832 Жыл бұрын
Finalize is not a block it is a method of Object class.and another info I found it's depricated from Java 9.correct me if I wrong. Great Video thanks.
@ig_haxie
@ig_haxie Жыл бұрын
a method is also called as a "block" of code
@divsreviews2860
@divsreviews2860 Жыл бұрын
Yes Finalize got deprecated from JDK 9, I read in Java Complete reference 10 book
@Foodmoods_s
@Foodmoods_s 9 ай бұрын
That method is "Finalized" which is used before the garbage collection, "Finally" is a keyword and a block also which will always execute except when we use the system.exit or in jvm crash abruptly..in these two situations "finally" block will not executed..
@manoharsitaram3300
@manoharsitaram3300 3 жыл бұрын
I think from java 1.7 onwards we can provide only try block also. Or may be it is possible when we are using try with resource . Can you please confirm that by looking into it once.
@CodeDecode
@CodeDecode 3 жыл бұрын
That's with try with resources. As said in the video I Will cover that in part 2
@koushikratnagiri903
@koushikratnagiri903 2 жыл бұрын
Please cover the intermediate and advanced also
@revansiddappapanchal2068
@revansiddappapanchal2068 Жыл бұрын
your voice is awesome
@CodeDecode
@CodeDecode Жыл бұрын
👍
@sushmakolli1119
@sushmakolli1119 2 жыл бұрын
Please make exception handling part 2 video with advanced concepts like Exception chaining,try with multiple resources.
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Shushma 🙂🙂👍👍
@sankarasubramanian568
@sankarasubramanian568 Жыл бұрын
good content, thanks !
@CodeDecode
@CodeDecode Жыл бұрын
you're welcome
@NSreenivasulu-d2p
@NSreenivasulu-d2p 2 күн бұрын
Upload intermediate and advanced level questions... maam.
@kishoredanti5769
@kishoredanti5769 3 жыл бұрын
Waiting for Part-2
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure will upload soon.
@shankarpatilsp
@shankarpatilsp 3 жыл бұрын
Thank You so much Ma'am..!!
@CodeDecode
@CodeDecode 3 жыл бұрын
your welcome 👍
@ravirajsaraganachari3038
@ravirajsaraganachari3038 3 жыл бұрын
Please make next set of FAQ on exception.
@CodeDecode
@CodeDecode 3 жыл бұрын
Ok sure
@bharatahirwar2252
@bharatahirwar2252 3 жыл бұрын
at the end ,you mentioned finally is key word , and finalize is a block , which is wrong statements, Except this you explained nicely, Awesome explanation. pls try to cover all topics for interview perspective.
@dileepnb01
@dileepnb01 2 жыл бұрын
Final is a keyword Finally is a block Finalize is a method Is it correct now?
@vishalkadam7728
@vishalkadam7728 Жыл бұрын
14.20 timestamp ...checked exception can be propagated using throw
@AvinashKumar-ps8wl
@AvinashKumar-ps8wl 3 жыл бұрын
Please , upload exception handling advanced and intermdiate level questions with "Exception handling in spring boot applications " . This is mostly asked question in the interviews .
@CodeDecode
@CodeDecode 3 жыл бұрын
Yes I m planning to upload this soon. Thanks for the topic. 👍
@saisybase
@saisybase 3 жыл бұрын
Thank you very much
@CodeDecode
@CodeDecode 3 жыл бұрын
You are welcome..
@akadas6124
@akadas6124 3 жыл бұрын
Please make video on intermediate and advance exception handling also.. this was really good🙂
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍👍
@kshitizkamaljain8233
@kshitizkamaljain8233 3 жыл бұрын
Yes. Really require the intermediate and advanced level video on this.
@user-pf9jq7ys3m
@user-pf9jq7ys3m 11 ай бұрын
love u madam tq gave much info😍
@CodeDecode
@CodeDecode 11 ай бұрын
❤️❤️
@fionamiriamabraham5074
@fionamiriamabraham5074 3 жыл бұрын
Hi ,thank you for the useful videos. Can you please do videos on multi threading and web services also
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure will upload them soon
@sonalgupta7083
@sonalgupta7083 Жыл бұрын
Can you please upload video of java best practices
@sukanyasundar4302
@sukanyasundar4302 3 жыл бұрын
Thanks a lot for all the interview related videos. Appreciate your time and effort.
@CodeDecode
@CodeDecode 3 жыл бұрын
I am Glad you like them!
@philipdodson7870
@philipdodson7870 3 жыл бұрын
Great video, my only feedback is that to say final variable cannot be changed is misleading as final variables can still be mutated
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks. Ohh but Except inside constructor, how can we change/ instantiate it's value?
@EncryptoG
@EncryptoG 3 жыл бұрын
Please upload interview questions of exception handling, Thank you.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure will upload soon 👍
@GauravKawatrakir
@GauravKawatrakir 3 жыл бұрын
@@CodeDecode waiting for other set questions mam, please upload.
@allancmm
@allancmm 2 жыл бұрын
Since Java 8, it's possible to use try whitout expliciting using catch. When creating object from classes that implement AutoCloseable: try (FileReader fr = new FileReader(path); BufferedReader br = new BufferedReader(fr)) { return br.readLine(); }
@anushrutimohanty6113
@anushrutimohanty6113 5 ай бұрын
Thanks @allancmm for this information. This is very helful !
@ma8969
@ma8969 2 жыл бұрын
Thank you so much
@CodeDecode
@CodeDecode 2 жыл бұрын
You're welcome
@prateetisingha6729
@prateetisingha6729 3 жыл бұрын
Please upload more questions of exception handling.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍
@SunilKumar-on1iq
@SunilKumar-on1iq 3 жыл бұрын
👏👏👏👏👏👏👏
@CodeDecode
@CodeDecode 3 жыл бұрын
🙏🙏🙏🙏
@suganyasums685
@suganyasums685 2 жыл бұрын
Please make video of advanced exception handling like chaining etc..
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Suganya. We will upload it in next few days for sure 🙂👍
@rampatil1261
@rampatil1261 2 жыл бұрын
Thanks you so much for this video Please make Advance questions also
@CodeDecode
@CodeDecode 2 жыл бұрын
sure ram we will make it soon
@rampatil1261
@rampatil1261 2 жыл бұрын
@@CodeDecode thanks in advance 😃
@nehagirase2656
@nehagirase2656 3 жыл бұрын
Hello mam, thank you this video so helpful mam but can you make experience level exception handling questions
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure. I will soon create advance level interview questions for this topic
@farhansheikh1278
@farhansheikh1278 4 ай бұрын
Can you also create a interview questions on File Handling? Thanks☺
@maheshakkemwar509
@maheshakkemwar509 3 жыл бұрын
Thank you 3000 😊
@CodeDecode
@CodeDecode 3 жыл бұрын
🙂👍
@aaaaaaaa3811
@aaaaaaaa3811 3 жыл бұрын
1. How u have handled expections in u r project? please give a brief explanation on this mam....asked many times in several interviews...
@CodeDecode
@CodeDecode 3 жыл бұрын
Will try to put next video on exception handling with spring.
@sarathkumarpgm
@sarathkumarpgm 3 жыл бұрын
We can add try without catch and finay? Yes : try with resources
@heenakouser7733
@heenakouser7733 2 жыл бұрын
Thank you so much maam
@CodeDecode
@CodeDecode 2 жыл бұрын
You're Welcome Heena....
@yoshitamahajan353
@yoshitamahajan353 3 жыл бұрын
Thank u so much..
@CodeDecode
@CodeDecode 3 жыл бұрын
M glad you liked it
@ankitanayak6485
@ankitanayak6485 3 жыл бұрын
The way of ur explanation 🙌🙌1st time i will see ur video nd so satisfied..tysm 🙏 please upload multi threading concept 🙏
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure I will upload a video for multi threading soon 👍👍👍👍
@ankitanayak6485
@ankitanayak6485 3 жыл бұрын
@@CodeDecode tysm☺️🙌
@avneeshsaxena2260
@avneeshsaxena2260 3 жыл бұрын
Plz do make video for multithreding real time senario based interview question. I have searched on entire KZfaq but did not get single video which is good. They have asked like where do you use multithreding in your web project...?
@CodeDecode
@CodeDecode 3 жыл бұрын
That's very nice topic that you have suggested. I will surely make a video on this.
@CodeDecode
@CodeDecode 3 жыл бұрын
If possible can you please share what all kind of questions you have faced that you want me to cover.
@yoshitamahajan353
@yoshitamahajan353 3 жыл бұрын
@@CodeDecode where have u used multithreading in your project is one the question
@sachinjadhav8759
@sachinjadhav8759 2 жыл бұрын
thank you
@CodeDecode
@CodeDecode 2 жыл бұрын
🙂🙂
@seenimohmed9111
@seenimohmed9111 3 жыл бұрын
ClassNotFoundException happened in runtime only right? It doesn't compile time exception. Pls clarify me
@shivaprasadgurram
@shivaprasadgurram 3 жыл бұрын
You are right! It will fall under unchecked exception i.e, runtime exception
@mohitgharate8171
@mohitgharate8171 3 жыл бұрын
Please upload videos on advance exception handling and try with resources
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍
@Ss_Sl
@Ss_Sl 3 жыл бұрын
Yes we want advanced level please try a video
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure will upload that soon
@josephkumar8259
@josephkumar8259 3 жыл бұрын
Thank you for the video. Can we handle all the exceptions with the parent class Exception...??
@CodeDecode
@CodeDecode 3 жыл бұрын
Yes you can but it's not a good practice.
@josephkumar8259
@josephkumar8259 3 жыл бұрын
@@CodeDecode Ok. Thank you.
@prashantmehra5247
@prashantmehra5247 3 жыл бұрын
Thank you ma'am
@CodeDecode
@CodeDecode 3 жыл бұрын
👍
@priyanka0112
@priyanka0112 3 жыл бұрын
create more video on exception handling,multithreading and collection questions.
@CodeDecode
@CodeDecode 3 жыл бұрын
sure Priyanka we will create one soon....
@sonalibajpai8323
@sonalibajpai8323 3 жыл бұрын
😍😭😭❤️😭❤️💞💞😒💞💞💞💞💞💞💞💞💞😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢💋😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢@@CodeDecode in in in
@sonalibajpai8323
@sonalibajpai8323 3 жыл бұрын
Iio iiii you can
@sonalibajpai8323
@sonalibajpai8323 3 жыл бұрын
@@CodeDecode in in thatioiiii
@GautamKumar-qx3rt
@GautamKumar-qx3rt 2 жыл бұрын
Really helpful video mam but please be slow thnak you
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Gautam thanks for inputs 🙂🙂👍👍
@aniketkolhe6945
@aniketkolhe6945 2 жыл бұрын
If program goes in infinite loop then can we use exception
@priyankaraut9289
@priyankaraut9289 3 жыл бұрын
Can u please upload interview questions on rest Webservices and spring n springboot
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure. Next spring boot interview questions are lined up
@pradeeppathak4533
@pradeeppathak4533 Жыл бұрын
Ma'am I have one year experience in java ..this vdo is fit for me ?? Or this is for freshers only ??
@CodeDecode
@CodeDecode Жыл бұрын
For every one Pradeep. Range is from 0 to 10 . These are basic but needed
@nandasagar3973
@nandasagar3973 2 жыл бұрын
thank u
@CodeDecode
@CodeDecode 2 жыл бұрын
You're welcome nanda ....
@nikhilratnalikar6068
@nikhilratnalikar6068 3 жыл бұрын
Can we call finalize() explicitly??? What will happen if we call this method manually??
@CodeDecode
@CodeDecode 3 жыл бұрын
You can call finalize() method explicitly on an object before it is abandoned. When you call, only operations kept in finalize() method are performed on an object. Object will not be destroyed from the memory.
MEU IRMÃO FICOU FAMOSO
00:52
Matheus Kriwat
Рет қаралды 46 МЛН
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 64 МЛН
Каха ограбил банк
01:00
К-Media
Рет қаралды 11 МЛН
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
Exception Handling in Java
56:53
Telusko
Рет қаралды 32 М.
Exception Handling in Java Tutorial
13:20
Coding with John
Рет қаралды 367 М.
MEU IRMÃO FICOU FAMOSO
00:52
Matheus Kriwat
Рет қаралды 46 МЛН