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.
2.1m questions
2.1m answers
60 comments
57.0k users