I have seen a method like shown below:
protected <T extends ABC> T save( T Acd, boolean en) {
What does it do? What is these type of method declarations called in Java?
It is called a generic method. This whole concept is called "Generics" in Java. That declaration means T can be any type that is subclass of ABC.
1.4m articles
1.4m replys
5 comments
56.9k users