0% found this document useful (0 votes)
17 views

Interview Questions

Interview questions asked in companies
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Interview Questions

Interview questions asked in companies
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 10

Nokia - 10th JAN 2024

1. Exam -> 50 minutes time limit

1.1 -> 2 sql questions

1. Questions on joins, there was a database table and


written query, we need to choose correct outcome of the query. ->
Learn sql joins, writing queries.

1.2 -> coding question on recursion, there was code


written, need to select correct output from the options -> Learn
Recursion.

1.3 -> coding question on string concatenation, there was


code written, need to select correct output from the options ->
Learn string concatenation.

1.4 -> coding question on regex with minimum and maximum


length, there was code written, need to select correct output from
the options -> Learn regex, and specifying attributes to it, eg: [a-zA-
Z0-9]{2,8}.

1.5 -> question on binary tree, heap and there time and space
complexity, which part of binary tree will have lesser value
elements -> Learn all about binary tree and heap very precisely.

1.6 -> coding questions covered with ArrayList, for loops,


while loops, nested loops, if else statements, arithmetic operations,
collections -> Learn and practice code on these concepts.

1.7 -> java scanner, taking inputs from scanner, how to take
integer as input through scanner, same for string and other data
types, what happens incase wrong datatype input given to the
scanner through console

1.8 -> try catch finally

1.9 -> System.out.println(“ ” + 1 + 2 + “abc” + 10 +10) -> output -


> 12abc1010 -> Learn string concatenation with integers and null
and other data types

2. First technical interview <- took by Anmol and DeepaHegde


2.1 tell me about yourself -> name, education, professional
(about job role and company), hobbies (just for little personal touch)

2.2 Java OOPs concept with examples (4 pillars of OOPs)

2.3 spring boot Annotations

2.4 multithreading, Thread Lifecycle, Synchronisation

2.5 can we have multiple finally blocks?

2.6 1st section preparation helps here as well in answering


java questions

3. Second technical interview <- took by balram

3.1 tell me about yourself

3.2 inheritance , interfaces, abstract classes, extends and


implements, default method in interface, all these with pseudo code
example

3.2.1 I want to access attributes of class A and class B in


class X, how can we do it?

3.3 multithreading, implement it with example, write pseudo


code

3.4 what is Process? What is Thread?

3.5 what challenges you faced in project?

3.6 how many lines of code you have written in project

3.7 your favourite java features?

3.8 some general project related question both technical and


non technical

3.9 why you want to switch?

4. HR interview
4.1 Tell me about yourself

4.2 your strength and weakness

4.3 what is your achievement for you from your life

4.4 what is unique about you

4.4 why Nokia?

4.5 salary expectations

4.6 some general questions

4.7 HR explained about Nokia policies.

—————————————————————————————————————
————————————————————

EY GDS - 25th JAN 2024

1. Tell me about yourself

2. Java OOPs, explain with example, 4 pillars of OOPs

3. Static polymorphism and Dynamic polymorphism, diff b/w them,


write code on it for showcasing concept

4. Internal working of HASH-MAP, HashSet, LinkedList, ArrayList

5. Diff b/w ArrayList and LinkedList

6. How to delete elements from ArrayList and LinkedList, how it gets


deleted internally?, there time complexity

7. Sorting ArrayList based on attribute of an object,


ArrayList<Person> persons, sort the persons arrayList based on
Person.empId (employee id of person)

8. Diff b/w comparable and comparator, when to use them

9. Filter elements from ArrayList using streams ->


streams().filter().toList()

10. Map objects from ArrayList using streams ->


streams().map().toList()

11. flatMap objects from ArrayList using streams ->


streams().flatMap().toList()

12. grouping objects from ArrayList using streams

13. count objects from ArrayList using streams

14. Write code to find number of times a character is repeating in a


String

15. String s1 = “Abc”


String s2 = “abc”

What happens -> sout(s1==s2)


What happens -> sout(s1.equals(s2))

What is the diff between “==” and “.equals()”

Person p1 = new Person();


Person p2 = new Person();

What happens -> sout(p1==p2)


What happens -> sout(p1.name.equals(p2.name))

16. Can we make constructor private, invoking parent constructor,


use cases of ‘super’ keyword, what is the use of constructor?

17. Why do we use ‘new’ keyword

18. Final keyword, when to use it

19. Explain all access modifiers -> private public protected default
with example

20. Diff b/w string buffer and string builder, and when to use them

21. Diff b/w hashTaple and hashMap, when to use them


22. Diff b/w throw and throws

23. Functional interface

24. Diff b/w interface and abstract, what all types of properties,
access modifiers, attributes, static and non static, constructor we
can have in interface and abstract class?

25. What are the important concepts of JAVA?

—————————————————————————————————————
————————————————————

Lowe’s -> 24 Feb 2024

For all the concepts, why this concept is introduced, what problem
does it solves, already there is a concept(eg: for loops) which is
solving a problem, then why there is a need of inventing this
concept (eg: streams) for solving a same problem,
What is difference between them, how does it adds more value than
previous one eg: why to use streams for iterating and applying
business logic when we have for loops to do same thing?
For all concepts understand them by asking below and above
questions on them
1. Why it is invented?
2. What problem does it solves?
3. What are its advantages and disadvantages?
4. When we already have a concept which does something
then why should use this concept over it?
5. How to decide when and what concept to be chosen?
6. What are the difference between those concepts which can
solve similar kind of problems?

Round 1 <- took by Sathish

1. Your intro

2. AWS Lambda, how did you created it <- learn everything about
creating and running was lambda in java, jax-rs, java-jerry

3. Monolithic vs MicroServices, advantages and disadvantages of


both them, which is more scalable, how can we scale them, why to
use micro services
4. Functional interface and Lambda Expressions

5. multithreading <- code multithreading <- Asynchronous call,


Future, CompletableFuture, ExecutorService, Runnable, Callable,
Thread, ThreadPool, Thread LifeCycle <- what logic you have written
to be executed by thread? <- callable interface implementation with
business logic

6. How do configure db-url and env specific things across testing


and prod environments, what all are the ways <- set environment
variables on cloud AWS lambda environment variables,
config/manifest.json, config/manifest-dev.json, config/manifest-
prod.json
springbok profiles application-dev.yaml or application-
dev.properties, application-prod.yaml, how you make which profile
should be used?

7. Http methods <- GET, POST, DELETE, UPDATE

8. mongoDB <- learn filtering data from db, inserting, updating,


deleting, by one or many

9. Sort Array List by passing lambda expressions in


Collections,sort(arrayListObj, (a,b) -> b-a) -> List<Emp> empList =
new ArrayList<>(); -> Collections.sort(emptiest, (a,b) -> b.name -
a.name);

10. How will be your working day, what do you do <- I develop java
code for given requirements and cover it with Junit test cases,
sonarqube report, sonaType report, code review, merge, deploy for
testing

11. How do you fix a reported bug <- by creating bug fix feature
branch

12. What All Data Structures You Know <- Learn All Data Structures
and Algorithms

13. What all are the time complexities we have <- O(n), O(nLogn),
O(n^2) etc…

14. DSA question solve in O(n) time complexity ->


mergeTwoSortedArrays -> arr1 = [1,2,3,6,7] arr2 = [4,5,7,8,9] ->
output arr1 [1,2,3,4,5] arr2 [6,7,7,8,9] -> use two pointer approach ->
left pointer = 0 for arr1, right pointer = 0 for arr2
compare arr[left] > arr[right] -> 6 > 4 -> swap them and
increment left++ and right++

15. What and how to use SQS, SNS, KAFKA, write code implementing
them

16. Write code to check a value form a JsonObject <- jsonObject has
List of JsonObjects from the list of json objects iterate them and
find the json object which has the value which we are looking for
convert jsonObject to java object, create endpoint for before
asked scenario(JsonObject), cover the code with Junit test case,
integration testing of an endpoint, test case for testing the api by
passing the path

17. Lombok annotations @Data annotation @NoArgsConstructor


annotations, all Lombok related annotations

18. Database caching reddis

19. Coding on Largest sum of SubArray from arrays <- give


optimised solution

20. HighLevel System Design of a application (Micro-services


Architecture)

Round 2 <- took by Pranav

1. Your intro

2. What is jax-rs, java jersey, why it is used, why it invented, how to


use it

3. What java version are you using <- java 8, what are features
introduced in java 8 and why they are introduced and how well and
frequently you are using it?

4. Lambda, functional interface, why to use lambda, why does it


introduced?

5. What is dependency injection, why to use dependency injection,


why to use @Autowired, why we should not create object using new
keyword, create singleton object, create prototype object in
springboot, constructed based dependency injection
why to use constructor based dependency inject?

6. Can you create asynchronous api in jax-rs/java-jersey/spring-boot,


what is synchronous call and asynchronous call?

7. Streams, apply streams on collection and filter data and collect it


into List Collectors.toLiist(), collect it into map
Collectors.toMap(), .map(), grouping which returns map <- all the
methods available in streams
List<Emp> empList = new ArrayList<>();
List<Emp> empWIthNamesHasEngineer =
empList.stream().filter(e ->
e.name.contains(“engineer”)).collect(Collectors.toList());
empList.stream().filter(e ->
e.name.contains(“engineer”)).map(e -> putInMap(e));
Map<Integer,String> empWIthNamesHasEngineer = new
HashMap<>();
putInMap(Emp emp){
empWIthNamesHasEngineer.put(emptied,emp.name);
}
solve same thing using stream().groupingBy() <- learn
grouping, flatMap and count() from streams <- all methods from
streams

8. Why to use streams over collections?

9. Mentioned I have good knowledge and given explanation on


Optional class and use cases and all the methods available in them

10. What all are the sorting algorithms, which algorithms you know
well, write code of mergeSort();

11. Which sorting algorithm does collections.sort() used and its time
and space complexity ?

12. Create an endpoint to Post Data in DB, post endpoint, return


ResponseEntity with statusCode and responseBody etc..

13. How can we validate request body received to the endpoint,


what all are the ways to do it, how can we do it just putting
annotation at endpoint @Valid, requestFilters and ResponseFilters

14. How do you handle exception <- @ControllerAdvisor, implements


ExceptionMapper(java-jersey/jax-rs)

15. Difference between @RestController and @Controller, how do you


choose which one to use?

16. Implement Repository Layer, what you need to pass in Generics


of JpaRepository eg: interface PostDataRepo extends
JpaRepository<Long, PostData>

17. What all are predefined methods in JpaRepository, can we create


our own methods.

18 write sql native query in repository for fetching the employees


whoever have the 5th highest salary <- throw the query get the
List<Employees> who all has the 5th largest salary

19 discussed about sql triggers and lots functionalities of sql, order


by desc, where clause, nested sql queries etc..

20. Create two entity classes and do @manyToMany Mapping <- write
code

21. What is Agile methodology?

22. What is CI/CD its abbreviation and why Jenkins is used, what is
the need of it, alternatives of Jenkins?

23. LocalDateTime vs Date in java

Feedback from round1 -> you have worked on all the requirements
we have, you good knowledge everything <- explore every concept
by asking why? When? How?

Feedback from round2 -> speaking with good energy keep it up

April 01 2024 <- hiring manager round


April 02 2024 <- HR round
—————————————————————————————————————
————————————————————

Manhattan Associates. 28/03/2024

Discussion about java opportunity with HR, interview not conducted


because of budget issues I.e. 11.50 LPA

1. Java interface
2. Project Architecture
3. DSA
4. Low level system design
5. High level system design
—————————————————————————————————————
————————————————————

You might also like