Upload Button Icon Add office photos

Filter interviews by

Virtusa Consulting Services Senior Java Developer Interview Questions and Answers

Updated 27 Sep 2024

Virtusa Consulting Services Senior Java Developer Interview Experiences

2 interviews found

Interview experience
2
Poor
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected
Round 1 - Technical 

(1 Question)

  • Q1. Java 8, exception handling for method overriding, collections basic on HashMap , hash set, blocking queue. Transient volatile

Interview Preparation Tips

Topics to prepare for Virtusa Consulting Services Senior Java Developer interview:
  • Java 8
  • exception handling
  • coding questions
Interview preparation tips for other job seekers - The 1st technical round was fine but the 2nd one was overwhelming since 4-5 people came to interview with cameras on so please be prepared.

I applied via LinkedIn and was interviewed in May 2021. There were 4 interview rounds.

Interview Questionnaire 

2 Questions

  • Q1. Basic to advanced concepts overview
  • Q2. Just go through basics and overview of the current project

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare for core java mainly and Spring Spring Boot Microservices

Senior Java Developer Interview Questions Asked at Other Companies

asked in Amdocs
Q1. Remove the Kth Node from the End of a Linked List You are given a ... read more
asked in Amdocs
Q2. Intersection of Linked List Problem You are provided with two sin ... read more
asked in Amdocs
Q3. Merge Two Sorted Linked Lists Problem Statement You are provided ... read more
asked in Amdocs
Q4. LRU Cache Design Question Design a data structure for a Least Rec ... read more
asked in Amdocs
Q5. Why is Java considered platform-independent while the Java Virtua ... read more

Interview questions from similar companies

I appeared for an interview before Mar 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 75 minutes
Round difficulty - Medium

This was an online coding round where we had 2 questions to solve under 75 minutes. I found both the questions to be of Easy to Medium level of difficulty.

  • Q1. 

    Line Reflection Problem Statement

    You are given several sets of points on a 2D plane, each set represented as a list of coordinates. Your task is to determine if there exists a line parallel to the Y-axis...

  • Ans. 

    The task is to determine if there exists a line parallel to the Y-axis that reflects given points symmetrically.

    • Iterate through each test case and check if a vertical reflection line exists for the given points

    • Calculate the midpoint of the x-coordinates and check if it reflects the points symmetrically

    • Consider edge cases where points are on the reflection line or have the same x-coordinate

  • Answered by AI
  • Q2. 

    Number of Islands Problem Statement

    You are provided with a 2-dimensional matrix having N rows and M columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in t...

  • Ans. 

    Count the number of islands in a 2D matrix of 1s and 0s.

    • Iterate through the matrix and perform depth-first search (DFS) to find connected 1s.

    • Mark visited cells to avoid redundant traversal.

    • Increment island count whenever a new island is encountered.

  • Answered by AI
Round 2 - Face to Face 

(4 Questions)

Round duration - 60 minutes
Round difficulty - Medium

This round had 2 coding questions followed by some questions from DBMS.

  • Q1. 

    Largest Rectangle in Histogram Problem Statement

    You are given an array/list HEIGHTS of length N, where each element represents the height of a histogram bar. The width of each bar is considered to be 1.

    ...
  • Ans. 

    Find the area of the largest rectangle that can be formed within the bounds of a given histogram.

    • Iterate through the histogram bars and calculate the area of the largest rectangle that can be formed using each bar as the height.

    • Use a stack to keep track of the indices of the bars in non-decreasing order of height.

    • Pop elements from the stack and calculate the area until a smaller height bar is encountered.

    • Update the max...

  • Answered by AI
  • Q2. 

    Valid Parentheses Problem Statement

    Given a string 'STR' consisting solely of the characters “{”, “}”, “(”, “)”, “[” and “]”, determine if the parentheses are balanced.

    Input:

    The first line contains an...
  • Ans. 

    The task is to determine if a given string consisting of parentheses is balanced or not.

    • Iterate through the characters of the string and use a stack to keep track of opening parentheses.

    • If an opening parenthesis is encountered, push it onto the stack.

    • If a closing parenthesis is encountered, check if it matches the top of the stack. If it does, pop the stack, else the string is not balanced.

    • At the end, if the stack is e...

  • Answered by AI
  • Q3. Can you explain the concept of ACID properties in DBMS?
  • Ans. 

    ACID properties in DBMS ensure data integrity and consistency in transactions.

    • Atomicity: All operations in a transaction are completed successfully or none at all.

    • Consistency: Data is always in a valid state before and after a transaction.

    • Isolation: Transactions are isolated from each other to prevent interference.

    • Durability: Once a transaction is committed, changes are permanent and survive system failures.

    • Example: If...

  • Answered by AI
  • Q4. Can you explain the different levels of data abstraction in a DBMS?
  • Ans. 

    Levels of data abstraction in a DBMS refer to the different views of data provided to users and applications.

    • Physical level: Deals with how data is stored on the storage media. Example: data blocks, pages, indexes.

    • Logical level: Focuses on how data is represented to users. Example: tables, views, constraints.

    • View level: Provides a customized view of the database for specific users or applications. Example: queries, rep

  • Answered by AI
Round 3 - Face to Face 

(4 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Standard DS/Algo round with 2 coding questions followed by 2 interesting puzzles.

  • Q1. 

    Cycle Detection in Undirected Graph Problem Statement

    You are provided with an undirected graph containing 'N' vertices and 'M' edges. The vertices are numbered from 1 to 'N'. Your objective is to determi...

  • Ans. 

    Detect if an undirected graph contains a cycle by exploring all possible paths.

    • Use Depth First Search (DFS) algorithm to traverse the graph and detect cycles.

    • Maintain a visited set to keep track of visited vertices and a parent pointer to avoid visiting the same vertex twice.

    • If a visited vertex is encountered that is not the parent of the current vertex, a cycle is present.

    • Consider edge cases like disconnected graphs a

  • Answered by AI
  • Q2. 

    Maximum 1s in a Row Problem

    Given a matrix ARR with dimensions N * M, consisting only of 0s and 1s where each row is sorted, determine the index of the row that contains the highest number of 1s. If multi...

  • Ans. 

    Find the row with the maximum number of 1s in a sorted matrix.

    • Iterate through each row of the matrix and count the number of 1s in each row

    • Keep track of the row index with the maximum number of 1s

    • Return the index of the row with the highest count of 1s

  • Answered by AI
  • Q3. You have two wires of different lengths, each taking different amounts of time to burn completely. How can you use these wires to measure a specific duration of time?
  • Ans. 

    By lighting both wires at the same time, the shorter wire will burn out first, allowing you to measure a specific duration of time.

    • Light both wires at the same time

    • Measure the time it takes for the shorter wire to burn out completely

    • The remaining length of the longer wire will indicate the specific duration of time

  • Answered by AI
  • Q4. You have 3 ants located at the corners of a triangle. The challenge is to determine the movement pattern of the ants if they all start moving towards each other. What will be the outcome?

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPASapient Corporation interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, DBMS, OS, Aptitude, OOPSTime required to prepare for the interview - 4 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview Preparation Tips

Round: Resume Shortlist
Experience: 4 years og experience

Interview Preparation Tips

Round: Test
Experience: Technical sections had questions from almost all the sections through AMCAT(C, C++, DBMS, DS, OS)(level :moderate)Quantitative aptitude’s questions were good.. All were almost of R. S. Aggarwal level though few exceptions were there tooLogical reasoning and verbal ability was good.. Some questions were tough.

Round: HR Interview
Experience: Overall enjoyed. But not selected because of my less market knowledge.

College Name: NA

Interview Questionnaire 

4 Questions

  • Q1. Explain Network Layers?
  • Ans. 

    Network layers are a hierarchical way of organizing communication protocols.

    • Network layers provide a modular approach to networking.

    • Each layer has a specific function and communicates with adjacent layers.

    • The OSI model has 7 layers, while the TCP/IP model has 4 layers.

    • Examples of layers include the physical layer, data link layer, network layer, transport layer, and application layer.

  • Answered by AI
  • Q2. What is a Dead Lock?
  • Ans. 

    Deadlock is a situation where two or more processes are unable to proceed because they are waiting for each other to release resources.

    • Occurs in multi-threaded/multi-process environments

    • Can lead to system freeze or crash

    • Prevention techniques include resource ordering and timeouts

    • Example: Process A holds resource X and waits for resource Y, while Process B holds resource Y and waits for resource X

  • Answered by AI
  • Q3. Explain Paging and Segmentation
  • Ans. 

    Paging and Segmentation are memory management techniques used by operating systems.

    • Paging divides memory into fixed-size pages and stores them in physical memory.

    • Segmentation divides memory into logical segments and stores them in physical memory.

    • Paging allows for efficient use of physical memory and reduces fragmentation.

    • Segmentation allows for protection and sharing of memory between processes.

    • Examples of operating s...

  • Answered by AI
  • Q4. Pirates of different ages have a treasure of 100 gold coins. On their ship, they decide to split the coins using this scheme: The oldest pirate proposes how to share the coins, the OTHER pirates (not inc...

Interview Preparation Tips

Round: Test
Experience: It would quite a simple test, covering basic questions from general mathematics and algebra
Tips: Practice "Aptitude" on daily basis

Round: Technical Interview
Experience: Technical Interview in sapient will be quite related to understand of your basic concepts. The round also includes Puzzles. Try Practising some random puzzles from internet.
Tips: Be active and Interactive. Even, if you do not know the answer, try explaining your approach. That would get you marks.

Round: HR Interview
Experience: The HR carries larger wait-age in Sapient. Do not panic. He will give you enough time to settle down by asking background questions. He will only try to analyse the kind of person you are. Be true to yourself and your are sure to be successful

Skills: Basic Concepts of Launguages, Operating System, Networks
College Name: NIT JALANDHAR

Skills evaluated in this interview

Interview Preparation Tips

Round: HR Interview
Experience: This interview is meant to check candidate's background and candidates's interest towards the company.

College Name: NIT BHOPAL

Interview Questionnaire 

6 Questions

  • Q1. INPUT : "HI MY NAME IS : ANIRUDDHA , CALL ME MAYBE :)" OUTPUT : "MAYBE ME CALL ANIRUDDHA IS NAME MY HI
  • Q2. Reverse a linked list (iterative AND Recursive)
  • Ans. 

    Reverse a linked list using iterative and recursive methods.

    • Iterative method involves traversing the list and changing the pointers to reverse the order.

    • Recursive method involves calling the function recursively on the next node and changing the pointers.

    • Both methods have O(n) time complexity and O(1) space complexity.

    • Example: 1->2->3->4->5 becomes 5->4->3->2->1.

  • Answered by AI
  • Q3. Clone a FULL linked list given a pointer and a random pointer
  • Ans. 

    Clone a linked list with a random pointer.

    • Create a new node for each node in the original list.

    • Use a hash table to map the original nodes to their clones.

    • Iterate through the original list again and update the random pointers of the clone nodes.

  • Answered by AI
  • Q4. TELL ME ABOUT YOURSELF
  • Q5. QUOTE YOUR STRENGHTS AND WEAKNESS
  • Q6. WHY SHOULD I HIRE YOU?

Interview Preparation Tips

Round: Test
Experience: 50 QUANTITATIVE APTITUDE QUESTIONS CUTOFF 30 out of 50
Total Questions: 50

Round: Test
Experience: WRITTEN ON PAPER CODING QUESTIONS
1) Given a string like
INPUT : ( ( TRUE OR FALSE ) AND ( FALSE OR TRUE ) ) OR FLASE
OUTPUT: TRUE
EVALUATE THE GIVEN EXPRESSION
2) Print all sub strings of maximum length having 2 unique characters
e.g:
INPUT : "hellomorning"
OUTPUT : "ell","llo","omo","nin"
3) Find the max length of subarray having ZERO SUM
INPUT : {3,2,1,1,0,-2,1,3,-5,1,2,1,4} OUTPUT: 7

Round: Test
Experience: 1) An array has 2N elements with N elements are same and another n are mutually different.
So find this repeating element in O(N) time with O(1) space
INPUT : {1,2,3,1}
OUTPUT: 1

2) Print the common words from given two sentences
AND YOU HAVE TO CONSIDER ALL CASES LIKE Colon, Hyphen, Dash, and Semicolons may be EMBEDDED IN BOTH SENTENCES
INPUT: sentence:1:: "HI ALL,RAMESH is mt brother,he has topped in the exam AND MY NAME IS NOT IN THE LIST"

sentence:2:: "all students are advised to READ THE LIST and say hi to RAMESH"

OUTPUT: "HI","ALL","RAMESH","THE","AND","LIST"

3) Sort the give dates collection given in special format like 10-04-2013,10-05-2005,29-02-2000 IN ASCENDING ORDER

OUTPUT: 29-02-2000,10-05-2005,10-04-2013

Round: Technical Interview
Experience: Then he started talking about my projects,Again jumped into coding questions
1. INPUT : "HI MY NAME IS : ANIRUDDHA , CALL ME MAYBE :)"
OUTPUT : "MAYBE ME CALL ANIRUDDHA IS NAME MY HI"
2. Reverse a linked list (iterative AND Recursive)
3. Clone a FULL linked list given a pointer and a random pointer

Round: HR Interview
Experience: TELL ME ABOUT YOURSELF.

QUOTE YOUR STRENGHTS AND WEAKNESS

WHY SHOULD I HIRE YOU?

College Name: NA

Skills evaluated in this interview

Interview Questionnaire 

1 Question

  • Q1. Questions based on previous written test are asked. Most common being to optimize the solution further

Interview Preparation Tips

Round: Test
Experience: The quantitative section was tougher than usual. There were tricky questions from Trigonometry and Mensuration.
3 Coding Questions were asked. Any programming language including pseudo-code was allowed.
String Manipulation seemed to be a favorite topic
Tips: Go through formulas and shortcuts for the Quantitative Section
Duration: 120 minutes
Total Questions: 40

Round: Test
Experience: 3 Questions. 30 minutes for each. This test was at the company premises.
Tips: Try to have more than one approach figured out.
Duration: 90 minutes
Total Questions: 3

Round: Technical Interview
Experience: Nice and Interactive interview. Interview to test flexibility in approach.

General Tips: Try to communicate well with the Interviewer. Don't hesitate in asking for feedback and advice after the interview is over with.
Skills: Coding, Problem Solving
College Name: NIT BHOPAL

Interview Questionnaire 

17 Questions

  • Q1. Tell me about yourself?
  • Ans. 

    I am a software developer with experience in multiple programming languages and a passion for problem-solving.

    • Experienced in Java, C++, and Python

    • Strong knowledge of data structures and algorithms

    • Proficient in web development using HTML, CSS, and JavaScript

    • Familiar with agile development methodologies

    • Excellent problem-solving and analytical skills

  • Answered by AI
  • Q2. Define Automation framework?
  • Ans. 

    Automation framework is a set of guidelines, standards, and coding practices used to create automated test scripts.

    • It provides a structured way to develop and maintain automated tests

    • It includes tools, libraries, and reusable components

    • It helps in reducing the time and effort required for testing

    • Examples include Selenium, Appium, and Robot Framework

  • Answered by AI
  • Q3. Difference between High severity and low severity with example, what is important as QA point of view?
  • Ans. 

    High severity refers to critical defects that impact the core functionality of the software, while low severity refers to minor issues that have minimal impact on functionality.

    • High severity issues can cause the software to crash or result in data loss.

    • Low severity issues are cosmetic or minor usability problems.

    • From a QA point of view, high severity issues are more critical as they can significantly impact the user ex...

  • Answered by AI
  • Q4. There one form where username and password and remember-me field is given, write the test scenarios?
  • Q5. Around 5-6 more questions
  • Q6. Automation architecture?
  • Q7. Difference between class and interface?
  • Ans. 

    Class is a blueprint for creating objects while interface defines a contract for classes to implement.

    • A class can have attributes and methods while an interface only has method signatures.

    • A class can be instantiated while an interface cannot.

    • A class can only inherit from one class while it can implement multiple interfaces.

    • Example: Class - Animal, Interface - Flyable

    • Animal can have attributes like name, age, etc. and m...

  • Answered by AI
  • Q8. What is static keyword?
  • Ans. 

    Static keyword is used to declare a variable or method that belongs to the class rather than an instance of the class.

    • Static variables are shared among all instances of a class

    • Static methods can be called without creating an instance of the class

    • Static blocks are used to initialize static variables

    • Static keyword can also be used to create nested classes

    • Example: public static int count;

  • Answered by AI
  • Q9. What are the different access modifiers and what is there uses?
  • Ans. 

    Access modifiers control the visibility and accessibility of class members.

    • Public: accessible from anywhere

    • Private: accessible only within the class

    • Protected: accessible within the class and its subclasses

    • Default: accessible within the same package

    • Used to enforce encapsulation and prevent unauthorized access

  • Answered by AI
  • Q10. Difference between interface and abstract?
  • Ans. 

    Interface defines only method signatures while abstract class can have both method signatures and implementations.

    • An interface can be implemented by multiple classes while an abstract class can only be extended by one class.

    • An abstract class can have constructors while an interface cannot.

    • An abstract class can have instance variables while an interface cannot.

    • An abstract class can provide default implementations for so...

  • Answered by AI
  • Q11. Write a program for given login scenario using defined automation architecture?
  • Ans. 

    A program for login scenario using defined automation architecture.

    • Identify the elements on the login page such as username, password, and login button

    • Use automation tools like Selenium to interact with the elements and input data

    • Verify successful login by checking for expected elements on the landing page

    • Implement error handling for incorrect login credentials

    • Use a modular and scalable architecture for maintainability

  • Answered by AI
  • Q12. Take an array, store the numbers and print the numbers using arrayList?
  • Ans. 

    To store and print numbers from an array using arrayList.

    • Create an arrayList object

    • Loop through the array and add each element to the arrayList using add() method

    • Print the arrayList using toString() method

    • Example: int[] arr = {1, 2, 3}; ArrayList list = new ArrayList<>(); for(int num : arr) { list.add(num); } System.out.println(list.toString());

Answered by AI
  • Q13. Write test scenario for download functionality of a songs website?
  • Ans. 

    Test scenario for download functionality of a songs website

    • Verify that the download button is visible and clickable

    • Check that the downloaded file is in the correct format

    • Ensure that the downloaded file is not corrupted

    • Test the download speed for different file sizes

    • Verify that the download progress is displayed to the user

  • Answered by AI
  • Q14. Difference between cache and cookies?
  • Ans. 

    Cache stores data temporarily to reduce server load while cookies store user information for website personalization.

    • Cache stores frequently accessed data to reduce server load and improve website performance.

    • Cookies store user information such as login credentials, preferences, and shopping cart items.

    • Cache is temporary and can be cleared at any time, while cookies can have an expiration date.

    • Cache is stored on the us...

  • Answered by AI
  • Q15. Solve the aptitude questions(2 – 3), she wanted to see the approach?
  • Q16. Make a 3*3 cube where you need to fill the numbers using 1-9, rows, columns and diagonal sum should be equal to 15
  • Q17. One more puzzle
  • Interview Preparation Tips

    Round: Test
    Total Questions: 2

    General Tips: Interview Experience was very good
    Skills: Algorithm, data structure
    College Name: na

    Skills evaluated in this interview

    Virtusa Consulting Services Interview FAQs

    How many rounds are there in Virtusa Consulting Services Senior Java Developer interview?
    Virtusa Consulting Services interview process usually has 1 rounds. The most common rounds in the Virtusa Consulting Services interview process are Technical.
    How to prepare for Virtusa Consulting Services Senior Java Developer interview?
    Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Virtusa Consulting Services. The most common topics and skills that interviewers at Virtusa Consulting Services expect are Java, Microservices, SQL, Spring Boot and JIRA.
    What are the top questions asked in Virtusa Consulting Services Senior Java Developer interview?

    Some of the top questions asked at the Virtusa Consulting Services Senior Java Developer interview -

    1. Java 8, exception handling for method overriding, collections basic on HashMap ...read more
    2. Just go through basics and overview of the current proj...read more
    3. Basic to advanced concepts overv...read more

    Tell us how to improve this page.

    Virtusa Consulting Services Senior Java Developer Interview Process

    based on 1 interview

    Interview experience

    2
      
    Poor
    View more
    Virtusa Consulting Services Senior Java Developer Salary
    based on 33 salaries
    ₹7.6 L/yr - ₹26.6 L/yr
    9% more than the average Senior Java Developer Salary in India
    View more details

    Virtusa Consulting Services Senior Java Developer Reviews and Ratings

    based on 8 reviews

    4.2/5

    Rating in categories

    4.2

    Skill development

    4.1

    Work-life balance

    3.6

    Salary

    3.8

    Job security

    4.3

    Company culture

    3.9

    Promotions

    4.1

    Work satisfaction

    Explore 8 Reviews and Ratings
    Senior Consultant
    3.8k salaries
    unlock blur

    ₹8 L/yr - ₹30 L/yr

    Lead Consultant
    3.5k salaries
    unlock blur

    ₹10.5 L/yr - ₹34.6 L/yr

    Software Engineer
    3.3k salaries
    unlock blur

    ₹3.5 L/yr - ₹13.3 L/yr

    Consultant
    3.3k salaries
    unlock blur

    ₹6 L/yr - ₹20 L/yr

    Associate Consultant
    2.7k salaries
    unlock blur

    ₹4.6 L/yr - ₹15.2 L/yr

    Explore more salaries
    Compare Virtusa Consulting Services with

    Cognizant

    3.7
    Compare

    TCS

    3.7
    Compare

    Infosys

    3.6
    Compare

    Accenture

    3.8
    Compare
    Did you find this page helpful?
    Yes No
    write
    Share an Interview