Morgan Stanley interview question

can Java has memory leak ? if so give an example