Best Java channel. Straightforward explanation, with code live demonstrated. You are sure to learn just by watching this. I learned from you in Spring Boot, REST services, and Java core APIs. Thank you so much!
I knew about Telusko from its inception but never liked or followed. But after seeing this one single lecture. Hands down never judge a book by its cover
Thank you so much Bro for your explanation. Your video resolved many of my confusion that even my lecturer was not able to solve coz she did not understand my confusion. Generics is much more clear now for me.
need help confusion on following declaration why .. 1) class CalendarDate implements Comparable (when we implement Comparable we write in the end ) 2) class OrderPair implements Pair .... (in user define interface we write after Class can somebody explain it)
Just asking, but what is the point of adding getters and setters in the class Container? From what I have tested so far, everything worked fine without those..
Everything worked fine without those because getter and setter for value were not used/called anywhere in the code. Point for adding those was just to show how generics works. For example, if you made object obj, like in the video: Container obj = new Container(); and you want to set value for it: obj.setValue("Java"); then compiler will know that T is String, public void setValue(T value); ----> public void setValue(String value);
class container{ T value; public void set(T value) { this.value=value; } public T get(){ return this.value; }
} public class Read {
public static void main(String[] args) {
container a = new container(); a.set(1); System.out.println(a.get());
}
} Sir in above code if i choose containera=new Container(), then it works but the time I choose it don't. It is understood that container means object could be of T Type or of type to which it extend.
sir how to do that you have done at 10:49 to see which class/interface extends which class when i do that in eclipse by holding control something different shows up "source not found "
Hello anna! just want to know about something which I encountered while I was coding my own Collections(say linkedList). So, I used and everything was working fine, however, when I tried to write a method for finding minimum in Linkedlist, compiler keeps throwing errors(as finding minimum wouldn't be possible if the type were (T=)String. So, I want just this method to accept Integer or any Number values and whenever the type doesn't fit it should neglect it. How can I do so?
Great video. Thank you so much. Could you tell me how to access the java proviced classes like List.class and Float.class. I use Eclipse as well but haven't figured it out yet.
list -> where T can be any fixed type and which is entered by you as a programmer and than it can not be changes in the middle list -> this is wild card, which can be anything. usually used when you dont know whats going to come up
why LIST interface methods are not asked to be implemented? rather its optional but when we create a new interface and add some methods, they need to be used mandatorily.
Sir in this lockdown I have learned a lot in programming just because of you. Thank you so much
he explained it in very simple manner now i understand this concept hope he will upload more complex way to define generic
Best Java channel. Straightforward explanation, with code live demonstrated. You are sure to learn just by watching this. I learned from you in Spring Boot, REST services, and Java core APIs. Thank you so much!
Telesko is good but I would like you to check Java Brains channel of Kaushik, your view might change
This guy is awesome, he really likes teaching which is highly appreciate it.
This is the single most important video if you want to be clear about Generics...Thank you!!
7:35 mind blown; thank you for this video
The beauty of java is that before solving clients problem you have to solve java problems.
Thank you so much! I've been looking all over the internet for this and none of them were as good and straightforward as this! Thank You SO MUCH!
I knew about Telusko from its inception but never liked or followed. But after seeing this one single lecture. Hands down never judge a book by its cover
I was always confused with "? extends ..." & "? super ...." but now it is clear to me. Thanks Navin Sir.
Very straight-forward and easy to understand. Thanks for the content!
in method definition of public void demo(ArrayList
your title music is damn scary if you have seen haunted on discovery channel
Read this as I was thinking the same thing. I'm dying over hear with that into music. LOL
as scary as generics in java
@@corianderIsBussin :))))))
The best explanation for Generics and Collection interface and Collections classes
This really is the best video on Generics, I love it!
This man is great I wish you a healthy and happy life and thanks for sharing.
Naveen sir your presentation is simple and understandable
I can't understand this in my class but here I've cleared all of my confusions in one shot ❤❤❤❤
Thank u sir ❤❤
Entities have different type of class. Student class, employee class. Thanks i need to populate data from database as List
lucid explanation. I have been watching ur videos for quite a while now. Thanks Navin Reddy. ur amazing.
u have some enormous talent sir...plz continue this job..all the best
Now this was a good video. You didn't cut it too short and leave out some of the nuances like others do. Now i'ma go lookup that ? thing and Super.
Even I m non it student, I m getting this concept clearly
Thanks to telusko🙏👍
Thank you so much Bro for your explanation. Your video resolved many of my confusion that even my lecturer was not able to solve coz she did not understand my confusion. Generics is much more clear now for me.
Thanks lot... for exact concept of java & all telusko videos to teach all technologies
Thanks a ton Navin. You are the best!
Hello sir! I need to know which subclass is sorted hashMap Or hashTable... ???
In case of....
Map m= new HashMap(); or HashTable() ;
need help confusion on following declaration why ..
1) class CalendarDate implements Comparable (when we implement Comparable we write in the end )
2) class OrderPair implements Pair .... (in user define interface we write after Class can somebody explain it)
what's T extends Comparable ?
Very detailed explanation. THANK YOU!!!!
@ Generics
@ List implementation
@ Implement manually
@ example
@ "extends"
@ example
@ "super"
Thank you so much, it's very easy to understand!
Awesome bro... Best Video I ever saw for Generics... Thanx man.
Thank You Navin, BIG Help!
Its similar to temlate in C++. They changed template to generics
You are really great my friend, tank you for your videos
Another great video that helped me with understanding my school homework. Thank you sir.
Thank you so much, your generics explanation is awesome.
The error at 3:37 is about Integer.parse() and not the List.add
Just asking, but what is the point of adding getters and setters in the class Container? From what I have tested so far, everything worked fine without those..
Everything worked fine without those because getter and setter for value were not used/called anywhere in the code.
Point for adding those was just to show how generics works.
For example, if you made object obj, like in the video:
Container obj = new Container();
and you want to set value for it:
obj.setValue("Java");
then compiler will know that T is String,
public void setValue(T value); ----> public void setValue(String value);
Great method of teaching.
Love the way you say "Dabl" & "GettaSetta" :D
9:05 when he laughed?
You are simply awesome Navin
100% explained ! Knowledge necessary for heavy solutions. Thank you. Keep on.
It was good but please discuss about generic method and uses of generics in combination with reflection
Bhai Mere mazza aa gya yaar
its good that such people do exist.#ilovetelusko
Great video, now I understand the concept. Thanks a lot!
Thank You, your lesson helped me a lot!
Thank you!! Excellent explanation :)
Good leason.
I was easily able to understand the generics.
Thanks.
Awesome Video I have ever seen ,
in short
in 5 min
Complete
Compaq
Really nice explaination. Thanks for all the details!
Thank You Sir🙏🏻. You taught it very well .
class container{
T value;
public void set(T value)
{
this.value=value;
}
public T get(){
return this.value;
}
}
public class Read {
public static void main(String[] args) {
container a = new container();
a.set(1);
System.out.println(a.get());
}
}
Sir in above code if i choose containera=new Container(), then it works but the time I choose it don't. It is understood that container means object could be of T Type or of type to which it extend.
means either T is Parents type or its child class
sir how to do that you have done at 10:49 to see which class/interface extends which class
when i do that in eclipse by holding control something different shows up "source not found
"
many many thanks ... superb video
Well explained. Thank you very much
Excellent Video
great explanation
Nice explanation
Well Explained
clear explanation , thanks mate.
It's clear, thank you.
Hello anna! just want to know about something which I encountered while I was coding my own Collections(say linkedList). So, I used and everything was working fine, however, when I tried to write a method for finding minimum in Linkedlist, compiler keeps throwing errors(as finding minimum wouldn't be possible if the type were (T=)String. So, I want just this method to accept Integer or any Number values and whenever the type doesn't fit it should neglect it. How can I do so?
great explanation, thanks.
very helpful tnx a lot
Excellent!! Thank you very much indeed. .
sir will u please provide the practical session videos
WOW that was a great video!
Really good tutorial
such a awesome video. I loved it.
Amazing content!!
thank you so much for this!
4:12 I didn't understand line 18...what is it doing?
13:05 didn't understand
concise and clear, thanks
CAN WE USE ? WHILE CREATING GENERIC CLASSES
at 8:27 it should be T value = null;
Thank you sir 🤠
Thanks I love it 🤝
Great video. Thank you so much.
Could you tell me how to access the java proviced classes like List.class and Float.class. I use Eclipse as well but haven't figured it out yet.
Do you mean: How do you go to the implementation of List? Just right click --> Go To --> Implementation (or [Ctrl]+[Alt]+[B]).
thank you. It was effective
Can you show a real example of using super keyword? I understood that it is used as constraint for concrete type, but when and where I should use it?
Use '? super T‘ whenever you want to indicate a type which is a super-type of 'T'.
U r awsm sir😍😍
very good thanks
sir in Hash map can we enter only key and values or we can enter one key no of values (like = sid,sname,address and phone )
5:45 Can T be replaced by integer or float ? 😃🤣😂
what is the differenes of list< T > with list< ? > ?
list -> where T can be any fixed type and which is entered by you as a programmer and than it can not be changes in the middle
list -> this is wild card, which can be anything. usually used when you dont know whats going to come up
Nice vid man!
why LIST interface methods are not asked to be implemented? rather its optional
but when we create a new interface and add some methods, they need to be used mandatorily.
Thanks
Good one.
example is quite vague. adding so much extra sentences in your statements
Always Awesome ❤️
what if I want to use student class eg: Container obj=new Container(); how will i write my student class then? i am confused
thanks
You teach good
I dont know why, but i am not being able to jump to implementation of any java inbuilt classes?
Any help!
Thank you :)
Great video