Infosys interview question

Write a program to add two numbers by calling the object in Java