For those who are wondering why Sir is using Integer instead of 'int'. Generics do not work with primitives, and 'int' is one such primitive type. So you've to use some Wrapper class, and Integer is one such wrapper class.
when multiple catch blocks are defined, how does a try statement determine which catch clause should be used to handle an exception? What happens when there is no catch clause after a try block?
Sir no catch block gives u an error a try with no catch .While using multiple catch u have to define the Exception with every catch and general catch block will be the last catch block like firstly catch(NullPointerException e) { } catch(Exception ex) { }
Hello sir .i have got an error please help : Note: Example.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. and after complining with -Xlint:deprecation : Example.java:16: warning [deprecation] Integer(int) in Integer has been deprecated .
Generics do not work with primitives, and 'int' is one such primitive type. So you've to use some Wrapper class, and Integer is one such wrapper class. Read about wrapper classes, autoboxing and unboxing.
@ashutosh lodhi Generics do not work with primitives, and 'int' is one such primitive type. So you've to use some Wrapper class, and Integer is one such wrapper class.
For those who are wondering why Sir is using Integer instead of 'int'. Generics do not work with primitives, and 'int' is one such primitive type. So you've to use some Wrapper class, and Integer is one such wrapper class.
thanks bro I was really looking for it.
@@priyansh_-_awadhiya_-.6760 sir himself told that in the video tho
Sir G you are actually a Sir G , I really appreciate your objective ,& YOUR WAY OF teaching is greate
So simple! Ab moksh mill jayega mughe. Thanku
You are the best god bless you
you are great sir i love your style of teaching...thank you sir.
Great explantion 👍
Thankyou sir 🙏🙇♂✨❤
Thanks for such a great contribution
your explanation is too good
very nice Saurabh Shukla Sir
Nice explanation
lajwabab
Thank You So Much Saurabh SIr..!
the integer type object can be created using value of() method?
when multiple catch blocks are defined, how does a try statement determine which catch clause should be used to handle an exception?
What happens when there is no catch clause after a try block?
Sir no catch block gives u an error a try with no catch .While using multiple catch u have to define the Exception with every catch and general catch block will be the last catch block like firstly
catch(NullPointerException e)
{
}
catch(Exception ex)
{
}
Great teaching
sir is that compulsary that the placeholder is should be written in upppercase .
Sir kindly explain how generic code is executed by the compiler.... Concept of raw type and legacy code...
nice one sir.........
excellent!
Thanks sir
sir,please upload a lecture on lambda expression
Thanx Sir.
Lambda expression pr video baniye sir
sir i want computer network video in hindi,plz give me some suggestion.
legendary
How to bound the generic type
sir please complete java courses
sir can u use netbeans...........
👍
GenericClass.java uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.
how to solve this problem sir
wish u a very Happy Diwali and Chhath puja........🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
Hello sir .i have got an error please help :
Note: Example.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
and after complining with -Xlint:deprecation :
Example.java:16: warning [deprecation] Integer(int) in Integer has been
deprecated .
sir please explain wild card
sir i'm going t end core-java. should i start android ?
What you do today?
What you do today?
People so engrossed in your video sir, that they forgot to click like button. 42k views and like are mere 10% !!!?
Integer ka object kyu bnaya hai ???
Generics do not work with primitives, and 'int' is one such primitive type. So you've to use some Wrapper class, and Integer is one such wrapper class. Read about wrapper classes, autoboxing and unboxing.
please reply me sir.
so confusing
Are sir integer ki jagah int bhi likh sakhte h
No, you can't use primitive types
@@mokshmahajan6340 Yes, ya right
@ashutosh lodhi Generics do not work with primitives, and 'int' is one such primitive type. So you've to use some Wrapper class, and Integer is one such wrapper class.