ThinksynQ interview question

Basics in Java,diff c,c++,python ,programs in java