Upload Button Icon Add office photos

HP India

Compare button icon Compare button icon Compare

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

HP India Java Developer Interview Questions and Answers

Updated 28 Nov 2024

HP India Java Developer Interview Experiences

2 interviews found

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(2 Questions)

  • Q1. Multivalued map
  • Q2. Basic core java
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
-
Result
Not Selected

I appeared for an interview in Oct 2023.

Round 1 - Technical 

(1 Question)

  • Q1. How do u handle concurrent request
  • Ans. 

    I handle concurrent requests by using synchronization, locks, and thread pools.

    • Use synchronization to ensure only one thread can access critical sections of code at a time

    • Use locks to prevent multiple threads from accessing shared resources simultaneously

    • Use thread pools to limit the number of concurrent threads and manage resources efficiently

  • Answered by AI

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() C ... read more
asked in Infosys
Q3. Which should be preferred between String and StringBuffer when th ... read more
asked in Deloitte
Q4. Convert BST to Greater Sum Tree Given a Binary Search Tree (BST) ... read more
Q5. 2. What will happen if hashcode only returns a constant? How will ... read more

Interview questions from similar companies

I appeared for an interview in Jun 2016.

Interview Preparation Tips

Round: Test
Experience: We had to code in the given duration. The question was a simple dynamic programming one. But the catch was that we could test our solution only a given number of times.
Tips: Make sure you're strong in your coding basics and have enough self confidence.
Duration: 3 hours
Total Questions: 1

Round: Technical Interview
Experience: The tech round was basically on the resume. There were a few questions about the projects I had done.
Tips: Know about everything you've written in your resume. Don't write anything that you're not very sure of.

Round: HR Interview
Experience: Questions were about my work and achievements in college and future plans.
Tips: Talk freely and don't be nervous. Don't reveal any future study plans to the HR!

College Name: Nitk surathkal

I applied via Job Portal and was interviewed before Sep 2020. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. Array, String problem and java , c

Interview Preparation Tips

Interview preparation tips for other job seekers - Basic knowledge of java and c++

I appeared for an interview before Nov 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 150 Minutes
Round difficulty - Medium

Have to attempt 2 programming questions within 2:30 hours. Can take any time over the weekend. Relatively easy problems. Questions were long, but the solution code was small.

  • Q1. 

    The Skyline Problem

    Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette when viewed from a distance. Each building is ...

  • Ans. 

    Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette.

    • Iterate through the buildings and create a list of critical points (x, y) where the height changes.

    • Sort the critical points based on x-coordinate and process them to generate the skyline.

    • Merge consecutive horizontal segments of equal height to ensure no duplicates in the output.

  • Answered by AI
  • Q2. 

    MergeSort Linked List Problem Statement

    You are given a Singly Linked List of integers. Your task is to sort the list using the 'Merge Sort' algorithm.

    Input:

    The input consists of a single line contain...
  • Ans. 

    Sort a Singly Linked List using Merge Sort algorithm.

    • Implement the Merge Sort algorithm for linked lists.

    • Divide the list into two halves, sort each half recursively, then merge them.

    • Use a fast and slow pointer to find the middle of the list for splitting.

    • Handle the base case of a single node or empty list.

    • Example: Input: 4 3 2 1 -1, Output: 1 2 3 4

  • Answered by AI
Round 2 - Coding Test 

(1 Question)

Round duration - 240 Minutes
Round difficulty - Medium

Had to solve 1 programming question in 4 hours. It was in the morning on a weekend. The environment was not so good. It was a small institute and got very crowded. The platform was also buggy. but the question was not difficult. Was able to solve it in just 1 hour and leave.

  • Q1. 

    Batch Photography Problem

    Alex has acquired a machine that can photocopy photos in batches of a minimum size 'K'. Given 'N' photos with resolutions represented in an integer array photos, the machine prod...

  • Ans. 

    Minimize maximum error by splitting photos into batches of size at least 'K'.

    • Sort the array of resolutions in ascending order.

    • Iterate through the array and calculate the error for each possible batch.

    • Return the minimum possible maximum error found.

  • Answered by AI
Round 3 - Video Call 

(1 Question)

Round duration - 30 Minutes
Round difficulty - Easy

It was in the afternoon. The interviewer basically asked me what technologies I have worked on. Checked my knowledge of those technologies with simple questions. Told me what I'll be working on if I get selected.

  • Q1. 

    Sort 0 1 2 Problem Statement

    Given an integer array arr of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.

    Input:

    The first line contains an integer 'T' representing the n...
  • Ans. 

    Sort an integer array containing only 0s, 1s, and 2s in linear time complexity.

    • Use three pointers to keep track of the positions of 0s, 1s, and 2s in the array.

    • Iterate through the array and swap elements based on the values encountered.

    • Maintain left pointer for 0s, right pointer for 2s, and current pointer for traversal.

    • Example: If current element is 0, swap it with element at left pointer and increment both pointers.

    • E...

  • Answered by AI
Round 4 - Video Call 

(2 Questions)

Round duration - 90 Minutes
Round difficulty - Hard

It was also in the afternoon. The interviewer was the member of the team I'll be working on if I get selected. He asked me some basic questions about related technologies.
Gave me 2-3 DS & Algo problems and asked me to solve them.

  • Q1. 

    Array Sum Calculation

    Calculate the sum of all elements in an array of length N.

    Input:

    Line 1: An integer N indicating the size of the array.
    Line 2: N integers, the elements of the array, separated by ...
  • Ans. 

    Calculate the sum of all elements in an array of length N.

    • Iterate through the array and add each element to a running sum.

    • Return the final sum as the output.

  • Answered by AI
  • Q2. 

    Ninja and Alien Language Order Problem

    An alien dropped its dictionary while visiting Earth. The Ninja wants to determine the order of characters used in the alien language, based on the given list of wor...

  • Ans. 

    Determine the order of characters in an alien language based on a list of words.

    • Create a graph where each character is a node and there is a directed edge from character 'a' to character 'b' if 'a' comes before 'b' in any word.

    • Perform a topological sort on the graph to get the order of characters.

    • Return the order as a string in lexicographical order.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 1 in BangaloreEligibility criteriaNo CriteriaSamsung R&D Institute interview preparation:Topics to prepare for the interview - Recursion, Backtracking, Dynamic Programming, Trees, ArrayTime required to prepare for the interview - 4 MonthsInterview preparation tips for other job seekers

Tip 1 : It's a Daily process. Not weekly, Not monthly. DAILY!
Tip 2 : Take part in Online Contests. HackerEarth is best for Contests posted by companies.
Tip 3 : Even after you have solved some problem, try to find a better solution for it online. Companies don't want a solution, they want optimized solution.

Application resume tips for other job seekers

Tip 1 : Modify resume for each job you are applying for. It should show why you are suitable for that particular job.
Tip 2 : Remove any extra things like interests and hobbies. No one cares.

Final outcome of the interviewSelected

Skills evaluated in this interview

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

(2 Questions)

  • Q1. About java basics like strings , arrays
  • Q2. Collections, map , hasmap
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
Not Selected

I applied via LinkedIn and was interviewed in Jul 2024. There were 2 interview rounds.

Round 1 - Coding Test 

Still I hv to attend

Round 2 - Technical 

(2 Questions)

  • Q1. I came here to know what all are the questions were asked
  • Q2. I don't know, am here to search questions to to tell
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
2-4 weeks
Result
No response

I applied via Campus Placement and was interviewed in Nov 2023. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Array based questions
  • Q2. Common elements in arr
  • Ans. 

    Find common elements in an array of strings

    • Iterate through each array and count the frequency of each element

    • Create a set of common elements by comparing frequencies

    • Return the set of common elements

  • Answered by AI

Skills evaluated in this interview

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

C programming
Cpp programs
Embedded c
Aptitude

Round 2 - Technical 

(2 Questions)

  • Q1. Difference between macro and functions
  • Ans. 

    Macros are preprocessor directives that are replaced before compilation, while functions are blocks of code that are executed at runtime.

    • Macros are defined using #define directive, while functions are defined using function keyword.

    • Macros are expanded by the preprocessor before compilation, while functions are executed at runtime.

    • Macros can be used for simple text replacement, while functions can perform complex operat...

  • Answered by AI
  • Q2. Difference between exec and fork
  • Ans. 

    exec replaces the current process with a new one, while fork creates a new process.

    • exec replaces the current process with a new one, while fork creates a new process

    • exec system call loads a new program into the current process's memory space and starts its execution

    • fork system call creates a new process by duplicating the existing process

  • Answered by AI
Round 3 - HR 

(2 Questions)

  • Q1. About yourself in 200 words
  • Q2. Tell about our company
  • Ans. 

    Your company is a leading software development firm specializing in creating innovative solutions for various industries.

    • Specializes in creating innovative software solutions

    • Works with clients from various industries

    • Known for high-quality and reliable products

    • Has a strong team of experienced developers

    • Provides excellent customer support

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Plan it and prepare well
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Job Portal and was interviewed in Dec 2023. There were 2 interview rounds.

Round 1 - Aptitude Test 

Easy to write with simole loetters to

Round 2 - Coding Test 

Very easy to manipulate with this code

Interview Preparation Tips

Interview preparation tips for other job seekers - Go with the flow

HP India Interview FAQs

How many rounds are there in HP India Java Developer interview?
HP India interview process usually has 1 rounds. The most common rounds in the HP India interview process are Technical and One-on-one Round.
What are the top questions asked in HP India Java Developer interview?

Some of the top questions asked at the HP India Java Developer interview -

  1. how do u handle concurrent requ...read more
  2. Multivalued ...read more
  3. Basic core j...read more

Tell us how to improve this page.

HP India Java Developer Interview Process

based on 2 interviews

Interview experience

4
  
Good
View more
HP India Java Developer Salary
based on 5 salaries
₹2.8 L/yr - ₹11 L/yr
33% more than the average Java Developer Salary in India
View more details

HP India Java Developer Reviews and Ratings

based on 1 review

5.0/5

Rating in categories

4.0

Skill development

4.0

Work-life balance

4.0

Salary

4.0

Job security

4.0

Company culture

4.0

Promotions

4.0

Work satisfaction

Explore 1 Review and Rating
Technical Support Engineer
232 salaries
unlock blur

₹2.2 L/yr - ₹7.5 L/yr

Software Engineer
128 salaries
unlock blur

₹4.1 L/yr - ₹14.7 L/yr

Financial Analyst
82 salaries
unlock blur

₹4.2 L/yr - ₹16 L/yr

Area Sales Manager
74 salaries
unlock blur

₹4.5 L/yr - ₹16.5 L/yr

Process Associate
61 salaries
unlock blur

₹1.6 L/yr - ₹4.2 L/yr

Explore more salaries
Compare HP India with

OPPO

4.0
Compare

LG Electronics

4.0
Compare

Bajaj Electricals

4.0
Compare

Voltas

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