---Advertisement---

Java Interview Questions-Capgemini(7+ Years)

By Siva

Published On:

---Advertisement---

📌 Round 1 : ( Technical )

#Q1 : Explain your roles and responsibilities in current project

#Q2: How do you get requirements ?

#Q3 : Write a Java Program to calculate frequency of each character of string without using HashMap.

#Q4 : How many String Objects will be created for String s1 = new String(“ankit”);

#Q5 : Why String is immutable ?

#Q6 : Explain your framework ? What kind of design pattern you use in your framework.

#Q7 : What is purpose of pageObjects in framework.

#Q8 : Explain me the difference between StringBuffer and StringBuilder ?

#Q9 : Where to use array and where to use ArrayList ?

#Q10 : Does ArrayList maintains insertion order ?

📌 Round 2 : ( Technical + Managerial )

#Q1 : Asked him to share Laptop screen and write xpath for given element.

#Q2: Tell me xpath functions you know ? : Answer : starts-with,contains, etc..

#Q3 : Do you use xpath or css in your framework or both ?

#Q4 : Have you worked with testNg, how will you re-run failed testcases in testNg.

#Q5 : How do you handle authentication popup with selenium. Write code.

#Q6 : Difference between checked and unchecked exceptions.

#Q7 : Difference between finally and finalize in Java

#Q8 : What is Fluent waits in Selenium ? Tell me one scenario where we can use fluent waits. Write syntax of fluent wait.

#Q9 : Do you have knowledge of SQL ? Explain different kinds of SQL Joins

#Q10 : Write the SQL Query to fetch the second_largest salary from employees table.(its frequently ask question )

📌 ( HR Discussion )

General HR Questions : How soon you can join , is your notice period negotiable , salary negotiation etc.

---Advertisement---

Leave a Comment