You can do this in another way (more understandable btw 😁) throw new InvalidAgeException("Not eligible for voting"); //or InvalidAgeException obj=new InvalidAgeException("Not eligible for voting"); // making the obj naam ka object throw obj; // then throwing it.
Bhai mai kha kha nhi bhatka user defined Exception code samajhne but kahi samajh hi nhi a rha tha par yaha par a to z samajh a gya 😂😂 Thankyou learn coding
1) After using throw keyword is it necessary to use throws? 2)if invalidageexception is created using throw keyword then why we need to create the same name class and constructor?
creating another class for receiving object InvalidAgeException("not eligible for voting") and declaring InvalidAgeExxception means we are telling complier that exception invalidageexception will be going to occur so catch (Exception e){ sysout(e)} will print the name of error which is invalidageexception
Best video on user defined exception... Thanku sir 😊
Agar kisine poocha ki Java sikhaneka Bhaghavan kidar hai? Tho mai Bilkul bolunga ki "Learn Coding" me hai.
Shi kha
😮
yes
Thank you sir very nice gide & very nice best information user defined exception teaching video.👍
excellent video ma sha Allah
what an explanation much better then paid courses❤❤
You can do this in another way (more understandable btw 😁)
throw new InvalidAgeException("Not eligible for voting");
//or
InvalidAgeException obj=new InvalidAgeException("Not eligible for voting"); // making the obj naam ka object
throw obj; // then throwing it.
pura code to de na bhai
really sir you are helping me a lot thakyou!
Bhai mai kha kha nhi bhatka user defined Exception code samajhne but kahi samajh hi nhi a rha tha par yaha par a to z samajh a gya 😂😂
Thankyou learn coding
Your explanation is too good sir 😊
Sir i am watching this video before 4 hours of my semester exam and i hope i will get out of marks in exception
Thank you sirji❤
All your vdos are awesome sir
Mere taraf se apke liye radhe radhe ❤
What a explain ❤️❤️
congratulations sir for 1M
Thank you so much sir
Very good program 💯
Thnaks❤
thanks for the knowledge
Very helpful
Thanks sir🙏🙏
U r explanation very well but plese chage font type i mean chage the words size it's easy to understood
Right 👍
next level video
nice work buddy😊😊👌👌👌👌
Very nice
thank you sir ......
Nice explanation ❤️🎉
thanks alot
Thank you sir ❤️
bro nice work😊
Fantastic Explanation
please add parameter to the vote method in line 13
Hello Sir, extends Exception ke liye koi parent class program likhna padgea ya nehi.? kyunki Exception ka subclass toh likha gaya he..
1) After using throw keyword is it necessary to use throws? 2)if invalidageexception is created using throw keyword then why we need to create the same name class and constructor?
echo"thank you";
Sir, one error is coming here (cannot find symbol) what to do now ??
Sir built in exceptions upload please sir
❤
But what is the use of creating another class and declaring InvalidageException ,cld u pls explain?
creating another class for receiving object InvalidAgeException("not eligible for voting") and declaring InvalidAgeExxception means we are telling complier that exception invalidageexception will be going to occur so catch (Exception e){ sysout(e)} will print the name of error which is invalidageexception
Easy explanation
sir please reply can i handle unchecked exception with the help of throws keyword . please reply you hand led ae in previous video
yes we can. unchecked exceptions are predefined exceptions in Java and they can be handled using throws keyword.
Sir java code ki profile kese banaye using command line
🙏🙏🙏
I don't understand sir in this program or maine laptop me bhi try kia but erro show hua
Sir can you please tell me which application you used to record you computer screen.
Flashback screen recorder 👇👇👇
ua-cam.com/video/owndSMo_5c0/v-deo.html
@@LearnCodingOfficial sahi hai sir isme me ek view 🤘🏻😄
Sir why here using throws key word can you explian
Can't find main (String[]) method in class : invalidageexception .
Check your program carefully, may be something went wrong you did
@@LearnCodingOfficial it compiled correctly , I even matched with your code,
Sor aaj Kam sa mj aaya hai😢😢😊
sir super class Exception is not working in my laptop it showing error when i typed only ....like (Exception e)
what to do??
I think ur laptop is not working properly .. Throw your laptop by using throw keyword
Extends exception class
Is it applicable to c++ also ?
Yes
sir please provide your notes
12:26
😇
Can you please help me out,
Sir kya ap advanced Java padhaye kya??
notes??
Bhai mai roj comment karta hu but aap javab kyu nahi dedte
Yes, bolo apna questions
Bhai apse baat karna tha whatsapp pe baat hogi ya instagram pe
I'd batao
Brother mai na hi whatsapp aur na hi insta use krta hu
Bhai ye batao apna video kaise shoot karte ho
Copy me likhke
Bhai video upload katne ka time kya hai
Sir plz reply
Yes ask your questions
Sir plz reply 🙏
Yes, ask your questions