Java Program Output Based Questions In Javascript