Cognizant interview question

java:inheritance,polymorphism,difference between java and c++,overriding and overloading,run time polymorphism