Hi Simon and Ameen
Thanks for the replies. I did know that primitives (int, float etc) pass by value but what about classes ? When I passed Integer to c.method() and changed the value , the changed value was not reflected in the calling program. does this mean that Classes also pass by value ?