Ankush Interview Question

Question related to java string, opps, MySQL query