Method signature that takes any parameter as input Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Method signature that takes any parameter as input without wasting too much if your time.

The question is published on by Tutorial Guruji team.

How can I declare a method signature that takes Long, Integer as input?

I tried following but it gives a compilation error:

List<Myobject> fun ( ? extends Number) value){
 //impl       

}

Answer

public <N extends Number>List<T>  xx(N a) {...}
We are here to answer your question about Method signature that takes any parameter as input - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji