Deutsche Bank interview question

What is class and object in java what is difference in between union and union all