Premium Employer

i

This company page is being actively managed by Cross Country Infotech Team. If you also belong to the team, you can get access from here

Cross Country Infotech Verified Tick Work with us arrow

Compare button icon Compare button icon Compare

Filter interviews by

Cross Country Infotech Java Developer Interview Questions and Answers

Updated 11 Feb 2023

21 Interview questions

A Java Developer was asked
Q. What is a stack in programming?
Ans. 

A stack is a data structure that follows the Last In First Out (LIFO) principle.

  • Elements are added and removed from the top of the stack.

  • Push() adds an element to the top of the stack.

  • Pop() removes the top element from the stack.

  • Peek() returns the top element without removing it.

  • Used in programming for function calls, expression evaluation, and memory management.

A Java Developer was asked
Q. What is a queue in programming?
Ans. 

A queue is a data structure that follows the FIFO (First In First Out) principle.

  • Elements are added to the back of the queue and removed from the front.

  • Common operations include enqueue (add to back) and dequeue (remove from front).

  • Examples include a line of people waiting for a movie or a printer queue.

  • Java provides the Queue interface and its implementations like LinkedList and PriorityQueue.

Java Developer Interview Questions Asked at Other Companies

asked in Deloitte
Q1. Sort 0 and 1 Problem Statement Given an integer array ARR of size ... read more
Q2. Parent class has run() and walk(). Parent run() calls walk(). Chi ... read more
asked in Infosys
Q3. Which should be preferred between String and StringBuffer when th ... read more
Q4. How do you sort a list of students based on their first name?
asked in Cognizant
Q5. What array list and linkedlist difference,how hashmap internally ... read more
A Java Developer was asked
Q. What is the difference between an error and an exception?
Ans. 

Errors are severe issues that cannot be handled programmatically, while exceptions are issues that can be handled.

  • Errors are typically caused by the environment or system, while exceptions are caused by the program itself.

  • Errors are usually fatal and cannot be recovered from, while exceptions can be caught and handled.

  • Examples of errors include out of memory errors or stack overflow errors, while examples of excep...

A Java Developer was asked
Q. What is the difference between throw and throws?
Ans. 

throw is used to explicitly throw an exception, while throws is used to declare that a method may throw an exception.

  • throw is used within a method to throw an exception explicitly

  • throws is used in the method signature to declare that the method may throw an exception

  • throw is followed by an instance of an exception class

  • throws is followed by the list of exception classes that the method may throw

A Java Developer was asked
Q. What is exception handling?
Ans. 

Exception handling is a mechanism in Java to handle runtime errors and prevent program termination.

  • Exceptions are objects that represent errors or exceptional conditions.

  • Java provides try-catch blocks to handle exceptions.

  • The try block contains the code that may throw an exception.

  • The catch block catches and handles the exception.

  • Multiple catch blocks can be used to handle different types of exceptions.

  • The finally...

A Java Developer was asked
Q. What are collections?
Ans. 

Collections are data structures in Java that store and manipulate groups of objects.

  • Collections provide a way to store, retrieve, and manipulate groups of objects.

  • They offer various data structures like lists, sets, and maps.

  • Collections provide methods for adding, removing, and accessing elements.

  • Examples include ArrayList, HashSet, and HashMap.

A Java Developer was asked
Q. Can a class be private?
Ans. 

Yes, a class can be private in Java.

  • A private class can only be accessed within the same outer class.

  • It cannot be accessed from any other class, even subclasses.

  • Private classes are often used for encapsulation and to hide implementation details.

Are these interview questions helpful?
A Java Developer was asked
Q. Can we add duplicates to an Array?
Ans. 

Yes, duplicates can be added to an array.

  • Arrays in Java can contain duplicate elements.

  • The order of elements in an array is preserved.

  • Duplicate elements can be added at any index in the array.

A Java Developer was asked
Q. Can a subclass inherit the properties of a parent class if the parent class is not loaded?
Ans. 

No, a subclass cannot inherit the properties of a parent class if the parent class is not loaded.

  • In Java, inheritance allows a subclass to inherit the properties and methods of its parent class.

  • However, for a subclass to inherit the properties of its parent class, the parent class must be loaded.

  • If the parent class is not loaded, the subclass will not have access to its properties.

  • To ensure that a subclass can inh...

A Java Developer was asked
Q. What is the difference between an array and a heap?
Ans. 

Array is a fixed-size data structure that stores elements of the same type, while heap is a dynamically allocated memory used for dynamic memory allocation.

  • Array has a fixed size, while heap can dynamically grow or shrink.

  • Array elements are stored in contiguous memory locations, while heap memory is allocated dynamically.

  • Arrays are accessed using index, while heap memory is accessed using pointers or references.

  • Ar...

Cross Country Infotech Java Developer Interview Experiences

1 interview found

Interview experience
1
Bad
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Jan 2023. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - HR 

(6 Questions)

  • Q1. When did you complete your B.E.?
  • Ans. 

    I completed my B.E. in 2015.

    • I completed my B.E. in 2015.

    • I graduated with a Bachelor's degree in Engineering in 2015.

    • My B.E. was completed in 2015.

  • Answered by AI
  • Q2. When did you complete your 12th?
  • Ans. 

    I completed my 12th in the year 2010.

    • I completed my 12th in 2010.

    • I finished my 12th grade in 2010.

    • My 12th grade was completed in 2010.

  • Answered by AI
  • Q3. Why there is year gap? Was there any back log during your Graduation?
  • Ans. 

    I took a year gap to gain practical experience and enhance my skills.

    • To gain practical experience and enhance my skills

    • To explore different technologies and frameworks

    • To work on personal projects and contribute to open-source projects

    • To attend workshops, seminars, and training programs

    • To take up internships or freelance projects

  • Answered by AI
  • Q4. In which year you completed your Graduation?
  • Ans. 

    I completed my graduation in the year 2015.

    • I completed my graduation in 2015.

    • I graduated in the year 2015.

    • My graduation was completed in 2015.

  • Answered by AI
  • Q5. Do you have any Java certficate? If no then please leave you are rejected.
  • Q6. We don't accept one who have backlogs in any year during graduation, if you have any back log then please leave you are not selected for next Technical Round.
Round 3 - Technical 

(23 Questions)

  • Q1. 1. What are four pillars of OOPS ?
  • Q2. 2. Give me Real life example of Polymorphism
  • Q3. 3. What is difference between Abstract class and Interface.
  • Q4. 4. Can we have multi level inheritance in Java
  • Q5. 5. What is difference between composition and inheritance
  • Ans. 

    Composition is a way to combine objects to create complex structures, while inheritance is a way to create new classes based on existing ones.

    • Composition is a 'has-a' relationship, where an object contains other objects as its parts.

    • Inheritance is an 'is-a' relationship, where a subclass inherits properties and behaviors from its superclass.

    • Composition allows for greater flexibility and modularity in design, as objects...

  • Answered by AI
  • Q6. 6. What is exception handing
  • Q7. 7. What is difference between throw and throws
  • Q8. 8. Can we have multiple try block
  • Q9. 9. When is memory allocated, when class is created or instance is created or when it is?
  • Q10. 10. What is stack in programming?
  • Ans. 

    A stack is a data structure that follows the Last In First Out (LIFO) principle.

    • Elements are added and removed from the top of the stack.

    • Push() adds an element to the top of the stack.

    • Pop() removes the top element from the stack.

    • Peek() returns the top element without removing it.

    • Used in programming for function calls, expression evaluation, and memory management.

  • Answered by AI
  • Q11. 11. What is queue in programming?
  • Ans. 

    A queue is a data structure that follows the FIFO (First In First Out) principle.

    • Elements are added to the back of the queue and removed from the front.

    • Common operations include enqueue (add to back) and dequeue (remove from front).

    • Examples include a line of people waiting for a movie or a printer queue.

    • Java provides the Queue interface and its implementations like LinkedList and PriorityQueue.

  • Answered by AI
  • Q12. 12. Difference between error and exception
  • Q13. 13. Other than inheritance what you will use to connect two classes?
  • Q14. 14. What are different types of Access Modifiers in Java?
  • Q15. 15. What is protected ?
  • Q16. 16. Can subclass access private methods parent class?
  • Q17. 17. Can subclass inherit the properties of Parent class if we not load parent class
  • Q18. 18. Can class be private?
  • Q19. 19. What are collections?
  • Q20. 20. What are different types of collections?
  • Q21. 21. Difference between array and heap?
  • Q22. 22. Can we add duplicates to Set?
  • Q23. 23. Can we add duplicates to Array?

Interview Preparation Tips

Topics to prepare for Cross Country Infotech Java Developer interview:
  • OOPS
  • Abstract class
  • Interface in Java
  • Constructor in Java
  • Access Modifiers in Java
  • Real life examples of OOPs
  • Palindrome problem
  • Exception handling in Java
Interview preparation tips for other job seekers - I interviewed at Cross Country Infotech, Pune on 10 Feb 2023. It was mass hiring for Trainee Software Engineer for Java, Angular, React.js. The company is totally horrible and whoever will attend their rounds will get the worst experience of their life ever. Here I will tell you all the details about what happened which interview questions they asked and many more.

There were three rounds of interview
HR Screening
Technical Round
Managerial Round

In job description, the eligibility criteria was given as 2020-2021 and 2022 Passout Only Education: BE/B Tech/MCA/MSc Candidate with non-technical background should be completed with One technical course/Internship/Training

The timing for the interview was 9 AM to 4 PM

I found this job posting on naukri.com.
The first round was HR Screening round. Here, they were shortlisting the resume. In my opinion this round was the most disgusting and horrible round, as what they were doing in first round was not upto what they have described on the job portal. The eligibility criteria they described on portal was graduation and not any other criteria were mentioned, I think because of this reason student have appeared for there drive, but what they did in first round was horrible, in Hr screening they said me that you were having backlogs in your first year that's why you are not eligible for further rounds, I was shocked after I heard that from HR, because for that round I sat for 4 hours, if this was your criteria then why didn't you said it in your job description, you just fooled the people to come for your drive by giving false description on job portal, it was most horrible drive, and also they rejected people who didn't have java certificate specifically, they were not accepting other technology certificates at all. In my opinion this was the first disgusting thing they did to people who have arrived there for interview from very long distance and sat for 4 or 5 hours for their first round of interview, which was HR Screening round. After she told me that I was not eligible, then I convinced her that I have Java certificate and also that backlog thing is past and is not any more, on that she told me to wait for the second round which was Technical Round. So after this I was relived a little bit, but this was something a silence before the storm, more misery was on the way. After 1st round I sat again for 3 hours there, then after that they took my technical round. The interviewer ask me the following questions: 1. What are four pillars of OOPS 2. Give me Real life example of Polymorphism 3. What is difference between Abstract class and Interface. 4. Can we have multi level inheritance in Java 5. What is difference between composition and inheritance 6. What is exception handing 7. What is difference between throw and throws 8. Can we have multiple try block 9. When is memory allocated, when class is created or instance is created or when it is? 10. What is stack 11. What is queue 12. Difference between stack and heap 11. Asked what will you use for debugging other than print statements 12. Difference between error and exception 13. Other than inheritance what you will use to connect to classes?
14. What are different types of Access Modifiers in Java?
15. What is protected?
16. Can subclass access private methods parent class?
17. Can subclass inherit the properties of Parent class if we not load parent class constructor inside subclass?
18. Can class be private?
19. What are collections?
20. What are different types of collections? 21. Difference between array and heap?
22. Can we add duplicates to Set?
23. Can we add duplicates to Array?

He asked me to write a program to check whether string was Palindrome or not?

Later he asked me some nonsense questions which he himself was not understanding, for those questions I tried my best level to give the information.
This round had gone above 1 hour, nearly like 80 to 90 minutes.
After the Technical Round I asked him for the feedback, he told me that I have a good knowledge of things, as fresher you have lot of understanding. ( as I have given correct answers to his 90% of questions) After this he told me to wait for result of this round.

Then again I waited for 1 hour, then HR came to me and said "You are not selected for the next round, you can leave for today now"

I was soo shocked, It was so much disgusting, as in this Technical Round I have given correct answers to his 90% of questions and also at the end he was happy with my answers and had given me feedback that I have good knowledge, but still they rejected me for 3rd round which was Managerial Round. I filled so much deceived, after such a good feedback they rejected me. What a shameful and disgusting this company could be with no moral and ethical values. I didn't get the answer why they rejected me in 2nd round despite of good performance. That technical round was monstrous, but still I've given correct answers to 90% of his questions. At this day I wasted my total more than 9 hours in that company for horrible experience. I suggest the one who is reading this that this company have no ethics and responsibility to the time of the people, if you are going to give interview to this company I will suggest not to, but if you still are then be prepared for such a worst experience, you may get rejected for unknown reasons even though you have performed very well, like given 100%.

Some warnings about this company:
1. You have to wait a lot for the rounds to happen.
2. This company Cross Country Infotech do not specify proper job description, in screening round, they will reject you for very very very silly reasons, like you had a backlog in your first year even though you are graduated now that doesn't matter, you don't have specific Java certificate.
3. You will get reject even if you answer to 90% of the interviewer questions in Technical round.
4. You will never know why you got rejected even after the best performance.
5. Imagine getting rejected for silly or unknown reasons like this after waiting hours and hours, like 9 hours, you will fill very down and deceived, this company will make your moral down.

At end I will say the Cross Country Infotech company is disgusting and have no moral, ethical or professional values, no value for people and thier time. STAY AWAY STAY SAFE from this Cross Country Infotech company!

Skills evaluated in this interview

Top trending discussions

View All
Interview Tips & Stories
6d (edited)
a team lead
Why are women still asked such personal questions in interview?
I recently went for an interview… and honestly, m still trying to process what just happened. Instead of being asked about my skills, experience, or how I could add value to the company… the questions took a totally unexpected turn. The interviewer started asking things like When are you getting married? Are you engaged? And m sure, if I had said I was married, the next question would’ve been How long have you been married? What does my personal life have to do with the job m applying for? This is where I felt the gender discrimination hit hard. These types of questions are so casually thrown at women during interviews but are they ever asked to men? No one asks male candidates if they’re planning a wedding or how old their kids are. So why is it okay to ask women? Can we please stop normalising this kind of behaviour in interviews? Our careers shouldn’t be judged by our relationship status. Period.
Got a question about Cross Country Infotech?
Ask anonymously on communities.

Interview questions from similar companies

Interview Preparation Tips

Round: Technical Interview
Experience: this was a telephonic round : There I was asked basics of web development (e.g Session, hidden variable difference between POST and GET etc. ) and basics of PHP e.g global variables etc , little bit of mysql e.g joins , difference between left and right joins.

Round: Technical Interview
Experience: This was pretty much about interview rounds. I got the offer.

Skills: Core java, OOP, PHP
College Name: na

Java Developer Interview Questions Asked at Other Companies

asked in Deloitte
Q1. Sort 0 and 1 Problem Statement Given an integer array ARR of size ... read more
Q2. Parent class has run() and walk(). Parent run() calls walk(). Chi ... read more
asked in Infosys
Q3. Which should be preferred between String and StringBuffer when th ... read more
Q4. How do you sort a list of students based on their first name?
asked in Cognizant
Q5. What array list and linkedlist difference,how hashmap internally ... read more

I applied via Naukri.com and was interviewed before Jan 2021. There was 1 interview round.

Interview Questionnaire 

2 Questions

  • Q1. Prime number
  • Q2. Fibonasic serier

Interview Preparation Tips

Interview preparation tips for other job seekers - prepare basic logic codes.
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in Mar 2024.

Round 1 - Aptitude Test 

Aptitude+CS fundamentals questions were asked

Round 2 - Coding Test 

4 questions majorly based on trees and linked list

Round 3 - Coding Test 

Again 3 ques 1 was based on trees,another in linked list and 3rd on kadanes algorithm

Round 4 - Technical 

(3 Questions)

  • Q1. Left view of tree
  • Ans. 

    Left view of a tree is the set of nodes visible when the tree is viewed from the left side.

    • Traverse the tree in a level order manner

    • Keep track of the first node encountered at each level

    • Add the first node encountered at each level to the result array

  • Answered by AI
  • Q2. Riddle based question
  • Q3. Detect a loop in linked list
  • Ans. 

    Use Floyd's Tortoise and Hare algorithm to detect a loop in a linked list.

    • Initialize two pointers, slow and fast, at the head of the linked list.

    • Move slow pointer by one step and fast pointer by two steps.

    • If they meet at any point, there is a loop in the linked list.

  • Answered by AI

Skills evaluated in this interview

Interview experience
2
Poor
Difficulty level
-
Process Duration
-
Result
-

I applied via Campus Placement

Round 1 - MCQ C and C++ 

(2 Questions)

  • Q1. Basic C and C++ mcqs
  • Q2. Function, pointers , time complexity
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

All multiple-choice questions on object-oriented programming and pointers.

Round 2 - Coding Test 

Questions related to linked lists and trees.

Round 3 - Coding Test 

Three questions, all regarding LinkedIn, focusing on lists and trees.

Interview experience
1
Bad
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

It was an 1 hour round with pseudocodes of c different subject questions and it was an objective test

Round 2 - Coding Test 

It was difficult with question of medium to hard level

Interview Preparation Tips

Interview preparation tips for other job seekers - be prepared well
Are these interview questions helpful?
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

It is very impressive work on Josh technology assessment because we learn many new skills.

Round 2 - Technical 

(2 Questions)

  • Q1. What is api and how it is work ?
  • Ans. 

    API stands for Application Programming Interface. It is a set of rules and protocols that allows different software applications to communicate with each other.

    • APIs define the methods and data formats that applications can use to request and exchange information.

    • APIs can be used to access services provided by other software applications, such as retrieving data from a database or sending notifications.

    • Examples of APIs ...

  • Answered by AI
  • Q2. What is software development life cycle and which steps are following?
  • Ans. 

    Software development life cycle (SDLC) is a process used by software developers to design, develop, and test software.

    • 1. Planning: Define the project scope, requirements, and objectives.

    • 2. Analysis: Gather and analyze user requirements.

    • 3. Design: Create a detailed design of the software.

    • 4. Implementation: Develop the software based on the design.

    • 5. Testing: Test the software for bugs and issues.

    • 6. Deployment: Release t...

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Campus Placement and was interviewed in Oct 2022. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Coding Test 

They would ask searching sorting , binary search in first round

Round 3 - Technical 

(2 Questions)

  • Q1. Most of question were from Tree and DP
  • Q2. Delete a node from a binary tree.
  • Ans. 

    Delete a node from a binary tree.

    • Find the node to be deleted

    • If the node has no children, simply delete it

    • If the node has one child, replace it with its child

    • If the node has two children, find the minimum value in its right subtree, replace the node with that value, and delete the minimum value node

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Have firm knowlege of time complexity and Data structure

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Referral and was interviewed before Jun 2022. There were 4 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Don’t add your photo or details such as gender, age, and address in your resume. These details do not add any value.
View all tips
Round 2 - Coding Test 

Duration 1 hour
Data structure and algorithms

Round 3 - Coding Test 

Duration 1.5 hour
Data structure and algorithms

Round 4 - One-on-one 

(1 Question)

  • Q1. Given a value find next sibling on right side of it without using global/heap variables
  • Ans. 

    Use a binary tree traversal algorithm to find the next sibling on the right side of a given value.

    • Implement an in-order traversal algorithm to traverse the binary tree

    • Keep track of the parent node and the direction of traversal to find the next sibling on the right side

    • If the given value is the right child of its parent, move up the tree until finding a node that is the left child of its parent

  • Answered by AI

Skills evaluated in this interview

Cross Country Infotech Interview FAQs

How many rounds are there in Cross Country Infotech Java Developer interview?
Cross Country Infotech interview process usually has 3 rounds. The most common rounds in the Cross Country Infotech interview process are Resume Shortlist, HR and Technical.
What are the top questions asked in Cross Country Infotech Java Developer interview?

Some of the top questions asked at the Cross Country Infotech Java Developer interview -

  1. 13. Other than inheritance what you will use to connect two class...read more
  2. Do you have any Java certficate? If no then please leave you are reject...read more
  3. 9. When is memory allocated, when class is created or instance is created or wh...read more

Tell us how to improve this page.

Overall Interview Experience Rating

1/5

based on 1 interview experience

Difficulty level

Easy 100%

Duration

Less than 2 weeks 100%
View more
Join Cross Country Infotech Revolutionizing Workforces for the Future
Process Associate
105 salaries
unlock blur

₹2 L/yr - ₹5 L/yr

Senior Process Associate
39 salaries
unlock blur

₹2.9 L/yr - ₹5.5 L/yr

Senior Software Engineer
30 salaries
unlock blur

₹7 L/yr - ₹13.8 L/yr

Analyst
28 salaries
unlock blur

₹16.6 L/yr - ₹71.5 L/yr

Software Engineer
26 salaries
unlock blur

₹9.4 L/yr - ₹16.5 L/yr

Explore more salaries
Compare Cross Country Infotech with

Maxgen Technologies

4.6
Compare

JoulestoWatts Business Solutions

3.1
Compare

Value Point Systems

3.5
Compare

F1 Info Solutions and Services

3.8
Compare
write
Share an Interview