Hexaware Technologies Interview Question

basics of java,oops concepts