State Street Interview Question

difference between java and c++,and sql queries.