MathWorks Interview Question

Difference between overloading and overriding. What are generics in java. Some debugging and output prediction codes.