if the parameter is of primitive type int, it auto boxes to Object type Integer and wise versa.
flipFlop(String , int , int)
flipFlop(String , int , Integer)
flipFlop(String , Integer , Integer)
flipFlop(String , Integer , int)
are all identical methods as any method you enter independently in the code would compile and run
Thanks
Main Topics
Browse All Topics





by: CEHJPosted on 2009-06-26 at 07:35:43ID: 24721352
It's confused because of autoboxing of int/Integer