Upload Button Icon Add office photos

Microsoft Corporation

Compare button icon Compare button icon Compare

Filter interviews by

Microsoft Corporation Java Developer Interview Questions and Answers

Updated 8 Aug 2024

Microsoft Corporation Java Developer Interview Experiences

1 interview found

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

Ages, trains, profit losss, hcf lcm, clock, simple interest 30 min

Round 2 - Coding Test 

Array string sorting algorithm

Interview Preparation Tips

Interview preparation tips for other job seekers - prepare dsa

Interview questions from similar companies

I applied via Recruitment Consultant and was interviewed before Feb 2020. There were 3 interview rounds.

Interview Questionnaire 

4 Questions

  • Q1. Java Multithreading
  • Q2. Serialization
  • Q3. Java String manipulation
  • Q4. Simple code based on bubblesort and its optimization

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident and Try to be fluent

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 appeared for an interview before May 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

  • Q1. 

    Find All Anagrams Problem Statement

    Given a string STR and a non-empty string PTR, identify all the starting indices of anagrams of PTR within STR.

    Explanation:

    An anagram of a string is another string ...

  • Ans. 

    Given a string STR and a non-empty string PTR, find all starting indices of anagrams of PTR within STR.

    • Create a frequency map of characters in PTR.

    • Use sliding window technique to check anagrams in STR.

    • Return the starting indices of anagrams found.

  • Answered by AI
  • Q2. 

    Subset Sum Problem Statement

    Given an array of integers, find the sum of all subsets in non-decreasing order of the given array.

    Example:

    Input:
    N = 3, array = [1, 2]
    Output:
    [0, 1, 2, 3]
    Explanatio...
  • Ans. 

    Find sum of all subsets in non-decreasing order of given array.

    • Use recursion to generate all subsets of the array

    • Calculate sum of each subset and store in a list

    • Sort the list in non-decreasing order to get the final result

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

First he asked me to tell about myself, then he asked me some OOPS Concepts,difference in shallow copy and deep copy,
asked me to write a code for boundary traversal of binary tree.

  • Q1. 

    Boundary Traversal of Binary Tree Problem Statement

    Given a binary tree consisting of integers, your task is to provide the boundary nodes of this tree in an anti-clockwise direction, starting with the ro...

  • Ans. 

    Boundary traversal of a binary tree to find left boundary, right boundary, and leaf nodes in an anti-clockwise direction.

    • Perform a pre-order traversal to get the left boundary nodes

    • Perform an in-order traversal to get the leaf nodes

    • Perform a post-order traversal to get the right boundary nodes

    • Combine the results to get the boundary nodes in anti-clockwise direction

  • Answered by AI
Round 3 - Face to Face 

(1 Question)

Round duration - 60 minutes
Round difficulty - Easy

The second tech interview lasted for about an hour and half. First he asked me to tell about myself. Then he asked me how my first interview was. He then asked me where should I start, data structures, databases, to which I replied anywhere.
He started asking questions about C. He asked difference between call by pointer and call by reference. Whether a function can be defined as
void function(int &x, int &y);
Then he asked what is volatile data type in C. Then about the static data class.
He also asked me to write a program to find length of a string.
Then he asked about how functions in C work. How does the program know where to go back after a function is over, etc.
He then asked me if I knew C++, I said no. So he continued to ask a few questions on data structures.
He then asked about the ACID properties which a good database must have. He asked how are transactions managed by a database, what are commits, how, in case of a power failure, data is reverted back, etc.
Then he asked me whether I like to work individually or in a team. I said in a team. He then gave me scenario where I have to decide between a project I am working on, whose deadline is approaching, and helping a friend working on another project whose deadline is also approaching, and asked me what would I do in such a case.

  • Q1. 

    Find the Middle of a Linked List

    This problem requires you to return a pointer that references the middle node of a singly linked list.

    Explanation:

    If the number of elements in the linked list is odd, ...

  • Ans. 

    Return the middle node of a singly linked list, considering odd and even number of elements.

    • Traverse the linked list with two pointers, one moving twice as fast as the other

    • When the fast pointer reaches the end, the slow pointer will be at the middle

    • Return the node pointed to by the slow pointer as the middle node

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 1 in PuneEligibility criteria7 CGPASAP Labs interview preparation:Topics to prepare for the interview - Data Structures ,sql, machine learning, OOPS, System Design, Algorithms, Dynamic ProgrammingTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Practice at least 5 codes daily.
Tip 2 : Do at-least one machine Learning Project.

Application resume tips for other job seekers

Tip 1 : Have at least three project.
Tip 2 : Put some achievements.

Final outcome of the interviewSelected

Skills evaluated in this interview

I applied via Referral and was interviewed before Oct 2020. There were 6 interview rounds.

Interview Questionnaire 

2 Questions

  • Q1. Tell Us about yourself?
  • Ans. I am from Kolkata. I have convey about my Educational Background to Interviewer.
  • Answered by Tanay Lakshman
  • Q2. Tell us about Coalnet Architecture of MMS Module?
  • Ans. I have convey about Indent,Purchase Order,Receipt and Issue in MMS Module to Interviewer.They have taken my Personal Documentation.
  • Answered by Tanay Lakshman

Interview Preparation Tips

Interview preparation tips for other job seekers - The documentation got approved by Samuel Of Oracle Australia Office.I was interviewed by Samuel by Telephone.Outcome will be Given in Email.It consists of 15 minutes technical interview.

What people are saying about Microsoft Corporation

View All
a marketing manager
2w
The reason why Microsoft is laying off 15000 employees 😭😭
Khali khaa rhi h or chill breaks lerhi h🤔🤔🤔
Got a question about Microsoft Corporation?
Ask anonymously on communities.

I applied via Naukri.com and was interviewed in Mar 2020. There were 4 interview rounds.

Interview Questionnaire 

2 Questions

  • Q1. What is web service flow
  • Ans. 

    Web service flow is the sequence of steps involved in the communication between a client and a server over the internet.

    • Web service flow involves a client sending a request to a server

    • The server processes the request and sends a response back to the client

    • The response can be in various formats such as XML, JSON, or plain text

    • Web service flow can be synchronous or asynchronous

    • Examples of web services include RESTful API...

  • Answered by AI
  • Q2. How to check ports in Solaris or linux machine
  • Ans. 

    To check ports in Solaris or Linux machine, use the netstat command.

    • Open the terminal and type 'netstat -an' to display all open ports.

    • Use 'netstat -an | grep ' to check if a specific port is open.

    • To check listening ports, use 'netstat -an | grep LISTEN'.

    • For Solaris, use 'netstat -an | grep .' instead of '| grep '.

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Total pathetic experience. What job description is given to you, doesn't matters because you won't be asked for that. Your resume will get shortlisted and then it doesn't matter what u have covered up in your career path, because interview rounds will consist of questions out of your scope. Your resume doesn't needs to be shortlisted at first end if it doesn't suit thier needs. HR people, they are on another level. You share your resume to them, and they will never ever reply back to you. Not a single HR, but it seems everyone has same culture. You keep trying to connect them for support. But they will just keep finding smarter ways to avoid.

Skills evaluated in this interview

Interview Questionnaire 

2 Questions

  • Q1. PATTERN PROBLEMS
  • Q2. CALCULATION OF CHILDREN AND GRANDCHILDREN
  • Ans. 

    Calculate the number of children and grandchildren

    • Count the number of direct children of a person

    • Count the number of grandchildren of a person

    • Use recursion to count all descendants

    • Consider only living descendants

    • Exclude step-children and adopted children

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Understand the logic
Practice

Microsoft Corporation HR Interview Questions

125 questions and answers

Q. What does culture fit mean to you at Microsoft?
Q. Which literary character do you most closely relate to, and what are the re ... read more
Q. What were your reasons for leaving your previous company?

I applied via Campus Placement and was interviewed before Nov 2021. 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 - Aptitude Test 

Numerical and logical aptitude test

Round 3 - Coding Test 

There are 5 rounds on datastructure and algorithm

Interview Preparation Tips

Interview preparation tips for other job seekers - Nice hr and all team is suportive
Good and smoth interview experiance
Are these interview questions helpful?

Interview Questionnaire 

1 Question

  • Q1. Reverse a string

I appeared for an interview before Jan 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 120 Minutes
Round difficulty - Medium

The test included MCQ questions from SQL, Linux Commands, C/C++ programming, Logical Reasoning, Aptitude questions. The other section was the coding round, where 2 SQL queries and 2 coding questions were there.

  • Q1. 

    Subarray with Equal Occurrences Problem Statement

    You are provided with an array/list ARR of length N containing only 0s and 1s. Your goal is to determine the number of non-empty subarrays where the numbe...

  • Ans. 

    Count the number of subarrays where the number of 0s is equal to the number of 1s in a given array of 0s and 1s.

    • Iterate through the array and keep track of the count of 0s and 1s encountered so far.

    • Use a hashmap to store the count of 0s and 1s encountered at each index.

    • For each index, check if the count of 0s is equal to the count of 1s encountered so far and update the result accordingly.

  • Answered by AI
  • Q2. 

    Pythagorean Triplets Detection

    Determine if an array contains a Pythagorean triplet by checking whether there are three integers x, y, and z such that x2 + y2 = z2 within the array.

    Input:

    The first lin...
  • Ans. 

    Detect if an array contains a Pythagorean triplet by checking if there are three integers x, y, and z such that x^2 + y^2 = z^2.

    • Iterate through all possible triplets of numbers in the array and check if they form a Pythagorean triplet.

    • Use a nested loop to generate all possible combinations of three numbers from the array.

    • Check if the sum of squares of two numbers is equal to the square of the third number for each trip...

  • Answered by AI
Round 2 - Face to Face 

(3 Questions)

Round duration - 50 Minutes
Round difficulty - Medium

This was a standard DSA round where I was asked to solve 2 questions and also code it in a production ready manner . At the end I was also asked some questions related to Linux and SQL . I was tested on some basic commands of Linux .

  • Q1. 

    Palindromic Substrings Problem Statement

    Given a string S, your task is to return all distinct palindromic substrings of the given string in alphabetical order.

    Explanation:

    A string is considered a pal...

  • Ans. 

    Return all distinct palindromic substrings of a given string in alphabetical order.

    • Iterate through all possible substrings of the given string.

    • Check if each substring is a palindrome.

    • Store distinct palindromic substrings in alphabetical order.

  • Answered by AI
  • Q2. 

    Swap Two Numbers Problem Statement

    Given two integers a and b, your task is to swap these numbers and output the swapped values.

    Input:

    The first line contains a single integer 't', representing the num...
  • Ans. 

    Swap two integers 'a' and 'b' and output the swapped values.

    • Create a temporary variable to store one of the integers before swapping.

    • Swap the values of 'a' and 'b' using the temporary variable.

    • Output the swapped values of 'a' and 'b'.

  • Answered by AI
  • Q3. What is meant by normalization and denormalization?
  • Ans. 

    Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity, while denormalization is the process of intentionally adding redundancy to improve query performance.

    • Normalization involves breaking down a table into smaller tables and defining relationships between them to reduce redundancy and dependency.

    • Denormalization involves combining tables or adding redundant data to...

  • Answered by AI
Round 3 - Face to Face 

(3 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This was a DS/Algo + Core round where I was asked questions related to DBMS , SQL queries and Linux Commands . The first question was of DSA and I was able to code it preety fast . I was also asked to execute some SQL queries on my laptop.
Overall , this round went good according to my opinion.

  • Q1. 

    Anagram Pairs Verification Problem

    Your task is to determine if two given strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form the...

  • Ans. 

    Check if two strings are anagrams of each other by comparing their sorted characters.

    • Sort the characters of both strings and compare them.

    • Use a dictionary to count the frequency of characters in each string and compare the dictionaries.

    • Ensure both strings have the same length before proceeding with comparison.

    • Handle edge cases like empty strings or strings with different lengths.

  • Answered by AI
  • Q2. How would you delete duplicate emails from a database using SQL?
  • Ans. 

    Use SQL query with GROUP BY and HAVING clause to delete duplicate emails from a database.

    • Use GROUP BY clause to group emails together

    • Use HAVING clause to filter out groups with more than one email

    • Use DELETE statement to remove duplicate emails

  • Answered by AI
  • Q3. What is the difference between the DELETE and TRUNCATE commands in a DBMS?
  • Ans. 

    DELETE removes specific rows from a table, while TRUNCATE removes all rows and resets auto-increment values.

    • DELETE is a DML command, while TRUNCATE is a DDL command.

    • DELETE can be rolled back, while TRUNCATE cannot be rolled back.

    • DELETE triggers ON DELETE triggers, while TRUNCATE does not trigger any triggers.

    • DELETE is slower as it maintains logs, while TRUNCATE is faster as it does not maintain logs.

    • Example: DELETE FRO...

  • Answered by AI
Round 4 - HR 

(2 Questions)

Round duration - 30 Minutes
Round difficulty - Easy

This was a typical HR round with some standard Behavioral questions .

  • Q1. What is something about you that is not included in your resume?
  • Q2. Why do you want to work at Amdocs?
  • Ans. 

    I admire Amdocs for its innovation in technology and commitment to customer success, aligning with my career aspirations in software development.

    • Amdocs is a leader in the telecommunications industry, providing cutting-edge solutions that drive digital transformation.

    • The company's focus on innovation resonates with my passion for developing software that enhances user experiences.

    • Amdocs' commitment to professional growt...

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAAmdocs interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, 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

I appeared for an interview before May 2021.

Round 1 - Coding Test 

(3 Questions)

Round duration - 90 minutes
Round difficulty - Medium

  • Q1. 

    Longest Increasing Subsequence Problem Statement

    Given 'N' students standing in a row with specific heights, your task is to find the length of the longest strictly increasing subsequence of their heights...

  • Ans. 

    Find the length of the longest strictly increasing subsequence of heights of students in a row.

    • Iterate through the heights array and for each element, find the length of the longest increasing subsequence ending at that element.

    • Use dynamic programming to keep track of the longest increasing subsequence length for each element.

    • Return the maximum length found as the result.

  • Answered by AI
  • Q2. 

    Overlapping Intervals Problem Statement

    You are given the start and end times of 'N' intervals. Write a function to determine if any two intervals overlap.

    Note:

    If an interval ends at time T and anothe...

  • Ans. 

    Given start and end times of intervals, determine if any two intervals overlap.

    • Iterate through intervals and check if any two intervals overlap by comparing their start and end times

    • Sort intervals based on start times for efficient comparison

    • Consider edge cases where intervals end and start at the same time

  • Answered by AI
  • Q3. What SQL queries were asked during your interview?
  • Ans. 

    Various SQL queries related to data manipulation and retrieval were asked during the interview.

    • Basic SELECT queries to retrieve data from a single table

    • JOIN queries to retrieve data from multiple tables based on a common column

    • Aggregate functions like COUNT, SUM, AVG, etc. to perform calculations on data

    • Subqueries to retrieve data based on the result of another query

    • UPDATE queries to modify existing data in a table

    • DELE...

  • Answered by AI
Round 2 - Face to Face 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

  • Q1. 

    Zig-Zag String Problem Statement

    Given a string STR of size N and an integer M representing the number of rows in the zig-zag pattern, return the string formed by concatenating all rows when the string ST...

  • Ans. 

    Arrange a string in zig-zag pattern with given number of rows and concatenate the rows.

    • Iterate through the string and distribute characters to rows based on zig-zag pattern

    • Concatenate the characters in each row to get the final result

    • Handle edge cases like when number of rows is 1 or equal to the length of the string

  • Answered by AI
  • Q2. 

    Next Permutation Problem Statement

    You are given a permutation of 'N' integers. A sequence of 'N' integers is considered a permutation if it includes all integers from 1 to 'N' exactly once. Your task is ...

  • Ans. 

    The task is to rearrange a given permutation of 'N' integers to form the lexicographically next greater permutation.

    • Iterate from right to left to find the first element that is smaller than the element to its right.

    • Swap this element with the smallest element to its right that is greater than it.

    • Reverse the elements to the right of the swapped element to get the lexicographically next greater permutation.

  • Answered by AI
Round 3 - Face to Face 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

  • Q1. 

    Remove Consecutive Duplicates Problem Statement

    Given a string S, your task is to recursively remove all consecutive duplicate characters from the string.

    Input:

    String S

    Output:

    Output string

    Constr...

  • Ans. 

    Recursively remove consecutive duplicate characters from a string.

    • Use recursion to check if the current character is the same as the next character, if so skip the next character

    • Base case: if the string is empty or has only one character, return the string

    • Example: Input: 'aaabcc', Output: 'abc'

  • Answered by AI
  • Q2. 

    Print Permutations - String Problem Statement

    Given an input string 'S', you are tasked with finding and returning all possible permutations of the input string.

    Input:

    The first and only line of input ...
  • Ans. 

    Return all possible permutations of a given input string.

    • Use recursion to generate all possible permutations of the input string.

    • Swap characters at different positions to generate permutations.

    • Handle duplicate characters in the input string by using a set to store unique permutations.

  • Answered by AI
Round 4 - Face to Face 

(1 Question)

Round duration - 60 Minutes
Round difficulty - Medium

  • Q1. Design an e-commerce website similar to Flipkart or Amazon.
  • Ans. 

    Design an e-commerce website similar to Flipkart or Amazon.

    • Implement user-friendly interface for easy navigation

    • Include search functionality with filters for products

    • Incorporate secure payment gateway for transactions

    • Provide personalized recommendations based on user behavior

    • Include customer reviews and ratings for products

    • Implement order tracking and delivery status updates

    • Offer various payment options like credit/deb...

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from National Institute of Technology, Kurukshetra. I applied for the job as SDE - 1 in BangaloreEligibility criteriaAbove 7.5 CGPASAP Labs interview preparation:Topics to prepare for the interview - DSA(Data Structures and Algorithms),Object-Oriented Programming Principles,Operating Systems,Database Management Systems,Web Development,Machine Learning,Projects(Internship/Full-time)Time required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Prepare DSA well. Standard Leetcode-type questions will be asked.
Tip 2 : You should be crystal clear about your project/s as any question would be asked and you should be able to answer it.
Tip 3 : Prepare CS fundaments like OS, OOPs, DBMS, etc.

Application resume tips for other job seekers

Tip 1 : Clearly mention the tech. stack you have worked on in the project/s
Tip 2 : As a fresher, you should add your coding profiles on CodeChef, Codeforces, etc. so as to make the resume shortlisting easy

Final outcome of the interviewSelected

Skills evaluated in this interview

Microsoft Corporation Interview FAQs

How many rounds are there in Microsoft Corporation Java Developer interview?
Microsoft Corporation interview process usually has 2 rounds. The most common rounds in the Microsoft Corporation interview process are Aptitude Test and Coding Test.

Tell us how to improve this page.

Overall Interview Experience Rating

5/5

based on 1 interview experience

Microsoft Corporation Java Developer Salary
based on 16 salaries
₹9.8 L/yr - ₹17.3 L/yr
111% more than the average Java Developer Salary in India
View more details

Microsoft Corporation Java Developer Reviews and Ratings

based on 4 reviews

4.3/5

Rating in categories

4.2

Skill development

4.6

Work-life balance

4.8

Salary

4.2

Job security

4.0

Company culture

4.2

Promotions

4.8

Work satisfaction

Explore 4 Reviews and Ratings
Software Engineer
2.6k salaries
unlock blur

₹24.8 L/yr - ₹44 L/yr

Senior Software Engineer
1.5k salaries
unlock blur

₹36.7 L/yr - ₹76.2 L/yr

Software Engineer2
1.3k salaries
unlock blur

₹33.1 L/yr - ₹60 L/yr

Software Developer
1.2k salaries
unlock blur

₹25.7 L/yr - ₹42 L/yr

Consultant
606 salaries
unlock blur

₹19.9 L/yr - ₹35 L/yr

Explore more salaries
Compare Microsoft Corporation with

Google

4.4
Compare

Amazon

4.0
Compare

Deloitte

3.7
Compare

TCS

3.5
Compare
write
Share an Interview