This is not a pressing question, I'm just curious.
What is the difference between using push() to add another object to a Stack and using addElement() to add an object?
I have found elsewhere that there is no difference between things like push() and add(), since add() is inherited from Collections, but I'm still curious to find out if there is anything I should know.
Also, do they both have a similar return type?