0% found this document useful (0 votes)
210 views18 pages

Finalt Interview Prepearation

The document provides answers to common recruiter questions about work experience, current compensation, and technical skills. It includes responses about the applicant's 2 years of experience in Java and related technologies, their current salary and notice period, and availability for interviews. It also includes sample Java programming questions and explanations of core Java concepts.

Uploaded by

Bunty LNU
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
210 views18 pages

Finalt Interview Prepearation

The document provides answers to common recruiter questions about work experience, current compensation, and technical skills. It includes responses about the applicant's 2 years of experience in Java and related technologies, their current salary and notice period, and availability for interviews. It also includes sample Java programming questions and explanations of core Java concepts.

Uploaded by

Bunty LNU
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Recruiter HR Questions:

1- Give me your introduction or tell me about yourself.


Good Morning!
I am -------------, Currently I am working as Java Microservice
Developer.
I have total --- years’ experience in Java, J2EE, Cloud and
Mircoservice.
I have knowledge of Core Java, Advanced Java, and basics of Java 8.
I have experience on framework like Spring, Spring Boot and
Hibernate.
I also have knowledge of developing microservices.
I also knowledge of Cloud platforms like PCF (pivotal cloud foundry)
and AWS (Amazon web services).
We are using Jenkins as a build tool for CICD pipeline
Currently I am working in Banking Domain Project.

2- Why are you looking for Job change?


There are two reason.
Primary reason is Career Growth and challenge me to get more
responsibility and new challenges.
Secondary reason is salary as my financial condition is not ok.

3- What is your Total Experience, how much in Java and other


technology?
I have 2 Year Experience in Java
I have 1 Year exp in Spring, Spring Boot and Hibernate.
I have 1 Year experience Cloud and Microservices,DevOps.
4- Are you holding any offer or any interview in queue? How soon
you can join or what is your notice period?
As per company policy my notice period is 30 Days (1 Month) ,so I
can join your company after one month.
I am not holding any offer now as I recently started my job search.
5- Is you Notice period negotiable ?
Yes, it is negotiable up to 7 days but I need to discuss with my
manager , we have buy out option .
6- are you working as permanent employment or contract to hire or
what is your parent company?
Yes I am working as permanent employee with my current company
so my current company is my parent company only.
7- What is your current CTC (Cost to Company includes fixed CTC
and variable CTC )How much CTC you are expecting ?
My current CTC (cost to company) is ------------- LPA (Lakhs Per
Annum) and I am looking for 30% hike on my current CTC which will
be around ----------- Lacs.
8- How much is fixed component and how much is variable
component in your salary ?
My salary is all fixed , there is no variable in salary
9- What time you will be available to take interview.
I can take interview on any time but please let me know in one day in
advance so I can manage my work also.

10- What is your Client name?


Sorry, I am not allowed to disclose CLIENT NAME so I can not
disclose this as per company policy but I can tell you about my project
and technical details.
11- Questions which you are not able to answer?
Sorry , I never got opportunity to work on this --------- in my project ,
but thanks for asking this question i will search on Google after this
interview.
12- If they are asking too much non technical details?
Sorry , I am not that much aware of this process , I use get my user
stories and my teal lead gives me instruction and also provides
solution which I need to follow .
13- How to ask Feedback in interview?
Sir, do you have any advice or suggestion for me where I need to
work more or need learn?
As you are senior and you have better experience than me so I am just
asking for an advice.
JAVA Programming Questions:
1. JAVA 8 Finding Employee with High Salary using streams:
https://www.javabrahman.com/java-8/java-8-finding-maxmin-with-c
ollectors-maxby-minby-methods-tutorial-with-examples/
2. Finding Employee with more than 10,000 salary
https://www.java2novice.com/java-8/streams/filter-method-example
/
3. Removing duplicates from list Using stream API

list.stream().distinct() .collect(Collectors.toList());

1. Swap two numbers without using third variable.


2. Armstrong number Program
3. Java Program to Check Whether a Number is Palindrome or Not
4. Java Program to Display Fibonacci Series
5. Java Program to Find Factorial of a Number
6. Java Program to find frequency of any element of an array, find
duplicate
7. Java Program to find largest element in Array or second largest or nth
Largest element.
8. Java Program to count the total number of characters in a string or
occurrence of character or find duplicate characters.
9. Java Program to read a file and find to count the total number of
words in a string Sentences or occurrence of word or find duplicate
words.
10.Java Program to determine whether two strings are the anagram
11.Java Program to determine whether a given string is palindrome
12.Java Program to find Reverse of the string
13.Java Program to find the largest and smallest word in a string
14.Find duplicates and remove duplicates from Arraylist
15.Arraylist sorting program
16.Find Largest in Array list or second largest or nth largest in ArrayList
17.Searching an element in Arraylist : binary search
18.HashMap Traversal program : how many ways we can traverse
Hashmap

Core Java:

1. What is JVM JRE ,JDK


2. Why java is platform independent.
3. OOPS concepts , Which object oriented concept is most important in
java
1-Encapsulation: binding data member and member function in
single unit(object) called encapsulation.
2-Abstraction: hiding internal information example: using abstract
methods
Abstract method: method without body is called abstract method
Abstract Class: a class which is having at least one abstract method
Interface: All method of interface will be abstract
Abstract class provides partial abstraction
Interface provides full abstraction
3-Polymorphism: it's a Greek word , Poly=many morphism : form, In
java it is applying same operation with different kind of data with
the help of method overloading and method overriding
Method overloading: compile time polymorphism
Method overriding: run time polymorpshim
Method overloading: same method signature but different parameter
Method overriding : overriding same method in child class
4-Inheritance : Inheritance in Java is a mechanism in which one
object acquires all the properties and behaviors of a parent object. It
is an important part of OOPs (Object Oriented programming system)

4. Difference between Abstraction and Encapsulation


5. What is Aggregation and Composition
6. Explain System.out.print

https://www.javatpoint.com/system-out-println-in-java
7. Can we have multiple main method in one Java class?
8. Five methods of Object Class.
https://www.tutorialspoint.com/Method-of-Object-class-in-Java

9. Why Strings are immutable and how to make your own immutable
class. Example of existing immutable class in java.:
The String is immutable in Java because of the security,
synchronization and concurrency, caching, and class loading. The
reason of making string final is to destroy the immutability and to not
allow others to extend it.
10.Reverse String with your own method
11.What is String pool and what is purpose of it?
12. How can we register a String in String pool? StringObject.intern()
13.Class Loader
14.String , String Builder and String Buffer Differences:Strings are
immutable and other are mutable , String builder is non synchronize
but String Buffer is synchronized
15.How Many type of Memory Area in java ?
16.DeepCopy and ShallowCopy
17.Collection : default size of all Collection ?
18.What is collection and Collections.
19. When we should use Array list and when we should use Linked list ?
20.When we should use Set or HashSet?
21.Hashset and hashMap
22.What is internal working of HASHSET and HASHMAP, Why hashMap
kept separately in Collection?
23.What is Design Pattern in java and explain Singelton design pattern
https://sandeepdass003.wordpress.com/2018/02/23/eager-and-lazy-
instantiation-in-singleton-design-pattern-implementation/

24.How to break SIngelton Design pattern.


https://www.geeksforgeeks.org/prevent-singleton-pattern-reflection-
serialization-cloning/

25. Concurrent modification exception


26.Static Keyword,can we override static methods ?
27.Can we use non static data inside static? Why?
28. What is Exception and Error , Checked and Unchecked Exception
29. Exception Hierarchy
30.How To create Custom Exception :
https://www.javatpoint.com/custom-exception

31.Try With Resource ,Try Catch Finally , Final Finally Finalize


32.Comparable and comparator
33.What is marker interface and what is serialization in java, what is
serialversionUID ?
34.User defined sorting
35.Hashset internal working and HashMap internal Working
36.Equals and Hashcode , what is Hashcode collision ?
37.In Which Scenario we should override Hashcode and equals method
38.What is Collection and Collections ?
39.What is Difference between Concurrent HashMap, Suynchronized
hashmap and hashmap , why we need ?
40.How Many ways we can create a Java ?

JAVA 8 QUESTIONS –

4. What all new feature available in Java 8, what is latest java version
5. What is Java 8 Stream Intermediate And Terminal Operations
https://javaconceptoftheday.com/java-8-stream-intermediate-and-te
rminal-operations/

6. What is Lambda Expression in Java


Reduced Lines of Code,Sequential and Parallel Execution
Support,Passing Behaviors into methods,Higher Efficiency with
Laziness

https://www.journaldev.com/2763/java-8-functional-interfaces
https://www.journaldev.com/16703/java-lambda-expression
7. Name of Functional interfaces with Example like Predicate,Producer
in JAVA 8
https://techvidvan.com/tutorials/functional-interface-in-java/

8. What is functional interface in Java and default methods, why default


method added.
If two interface have same default method and class is implementing
both what will happen?
Interface with only one abstract method called functional interface, it
can have multiple default and static methods
Default method is used to provide backward compatibility
java 8 functional interfaces are Consumer, Supplier, Function and
Predicate

https://www.baeldung.com/java-8-functional-interfaces
http://tutorials.jenkov.com/java-functional-programming/functional-i
nterfaces.html

9. What is stream API in java and parallel streams, filter


https://www.journaldev.com/2774/java-8-stream#stream-overview

10.What is static methods in interface and default method


11.Computable feature of Java 8
12.difference between abstract class and interface in Java 8

https://javaconceptoftheday.com/interface-vs-abstract-class-after-jav
a-8/

13.What is optional feature in java 8


https://javarevisited.blogspot.com/2017/04/10-examples-of-optional
-in-java-8.html

14.Finding Employee with High Salary using streams:


https://www.javabrahman.com/java-8/java-8-finding-maxmin-with-c
ollectors-maxby-minby-methods-tutorial-with-examples/
SPRING QUESTIONS –

1. What is spring framework ? And advantage of spring framework?


https://searchapparchitecture.techtarget.com/definition/Spring-Fram
ework
https://www.roseindia.net/spring/advantages-of-spring-framework.s
html

2. What is Spring container and Ioc (Inversion of control )


ClassName objName= new ClassName();// Tightly coupled with new

Dependency of creating object or injecting bean is diverted to Spring


framework

Loosely coupled with help of DI or Spring framework


This entire process called inversion of control ? We are inverting
control of creating object from java code to Spring framework.
3. What is dependency injection in Spring , type and which one is better

Setter DI
Constructor DI
but it depends on usecase or scenario what you want
100% DI then we should go for Constructor DI (Junit )

4. What are scope of a bean in Spring , default scope of bean


https://howtodoinjava.com/spring-core/spring-bean-scopes/

5. What is lifecycle of bean


https://howtodoinjava.com/spring-core/spring-bean-life-cycle/

6. How component scan works in spring ,What is component scan in


Spring
http://javainsimpleway.com/contextcomponent-scan/

7. @Autowire and @Inject


https://javarevisited.blogspot.com/2017/04/difference-between-aut
owired-and-inject-annotation-in-spring-framework.html#axzz60ATf8L
ar

8. What is Auto wiring in Spring , @Qualifier annotation


9. What is @Component, @Service, @Repository in Spring (Stereotype )
https://javarevisited.blogspot.com/2017/11/difference-between-com
ponent-service.html

10.What is Bean Factory and Application context in Spring


https://javarevisited.blogspot.com/2012/11/difference-between-beanfa
ctory-vs-applicationcontext-spring-framework.html#axzz7HCckjX6K

11. Spring MVC Flow


https://www.javatpoint.com/spring-mvc-tutorial

HIBERNATES QUESTIONS-

1. What is ORM Tools?


Object Relational Mapping: We convert java object into database
persistent object, example: Hibernate
2. What are main interfaces of hibernate
https://www.careerride.com/Hibernate-core-interfaces-of-hibernate-
framework.aspx

3. Get and load method difference in hibernate


https://www.tutorialspoint.com/difference-between-get-and-load-in-
hibernate

4. What is proxy in hibernate


5. What is caching in hibernate and types of caching
1- Default Cache : hit same query again to database
2- Third party cache :EhCache
3- Query Cache : @Cachable=true

https://www.javatpoint.com/hibernate-interview-questions
DATABSE SQL Questions:
DATABSE SQL Questions:
1 What is difference between Delete and truncate

commit : permanently save


rollback : coming back previous state
Delete-------> rollback
Truncate------> no rollback option

2 What is indexes in database, advantages and disadvantages


We use indexes to make search operation faster
INDEX EMP_ID EMP_NAME EMP_SALARY
Advantage :selct operation will be faster
Disadvantage: insert and update will be slower because it need to
update index as welll
Low Memory :it will an issue for database

3 What is View in Database:


It provides secuirty
When we work on confidential data
Table :ACCOUNT ID CUST_NAME AMOUNT BANK
View : ACCOUNT_ID CUST_NAME BANK

4 What is Trigger in database


It is a block of code which gets executed on DML Operation
INSERT
DELETE
UPDATE
Before Trigger and After Trigger

CREATE BEFORE/AFTER TRIGGER ON TABLE ON INSERT/DELETE/UPDATE{

5 Difference between stored procedure and function


Stored Procedure: DML Operation INSERT UPDATE DELETE
Function : It always uses select
We can use Function inside a Stored procedure but we can not use Stored
procedure inside a function
Function always return a value but store procedure may or may not

6 What is SQL Joins , what is left outer join and right outer join

EMP_TABLE
EMP_ID NAME SALARY CITY

SALARY_TABLE
EMP_ID SALARY DEPT

find out employe salary who's city is agra


Select b.SALARY, a.NAME , a.CITY from EMP_TABLE a, SALARY_TABLE b
where a.EMP_ID=b.EMPI_ID

SPRNG BOOT QUESTIONS-


● What is difference between Spring and Spring Boot
● Advantages of Spring Boot
● Common annotation of Spring Boot
1- @SpringBootApplication

2- @RestController = @Controller+ @ResponseBody

Spring Boot Automaticaly converts response in json format

3- @GetMapping = @RequestMapping+ Method=GET


@PostMapping
@PutMapping
● Steps to create Spring boot Application
step 1- add the starter web dependency or any other dependeicies
2- create Application Class

@SpringBootApplication
public static void main(String args[]){
SpringBootApplication.run(App.class,args);
}

3- Controller layer : @RestController


4- Service layer : @Service
5 - Repository layer: @Rrepository
6- application.properties : DB user/pwd
● @Profile annotation, changing port of application
dev- developer
qa- testing team
prod - live application

dev-application.properties
qa-application.properties
prod-application.properties
@Profile ("dev")
@Profile ("qa")
@Profile ("prod")
spring.profile.active=dev
spring.profile.active=qa
spring.profile.active=prod

● How to exclude tomcat server in Spring Boot


https://www.javaprogramto.com/2020/04/spring-boot-remove-tomc
at-add-jetty.html

● What is Spring boot actuator, healthcheck implementation?


It Provide production ready feature
● How to call another Spring boot application (Rest Template, feign
client)?
https://www.tutorialspoint.com/spring_boot/spring_boot_rest_temp
late.htm
https://javatechonline.com/how-to-implement-feign-client-in-spring-
boot-microservices/

● RestController advice in Spring Boot or How you manage exception


handling in a Spring boot Application or Explain global exception
handling
https://www.javainterviewpoint.com/spring-boot-exception-handling
/

● Difference between Controller and rest Controller


● @Requestparam and @Pathvariable in Spring
● What is Spring boot caching?
● What is Spring boot security, how to implement it
● How to make any field mandatory or optional in POST request
● What is difference between CrudRepository and JpaRepository
interfaces in Spring Data JPA?
● CORS with Spring
● Best practices of REST web services
● Content Negotiation in REST APIs
● How Spring Boot Application Works Internally
https://gainjavaknowledge.medium.com/how-spring-boot-applicatio
n-works-internally-dd9bd3ecc487#:~:text=Spring%20Boot%20Applica
tion%20Internal%20Working,that%20are%20provided%20by%20jar.&
text=To%20Enable%20preconfigured%20jars%20we%20just%20need
%20to%20define%20dependency%20in%20pom.

● user defined exceptions in spring boot


● transitive dependency
https://stackoverflow.com/questions/27934418/how-to-exclude-tran
sitive-dependencies-of-spring-boot-dependencies-from-maven-im

● Circular Dependency
https://www.baeldung.com/circular-dependencies-in-spring
● why we need zuul when we can directly call api with rest ---
https://dzone.com/articles/microservices-communication-zuul-api-ga
teway-1

● how to configure different data sources in spring boot

https://stackoverflow.com/questions/30337582/spring-boot-configur
e-and-use-two-datasources
● how to put different(dev, qa, prod) property files outside of
application. (Server or cloud)
@ConfigurationProperties
MICROSERVICES QUESTIONS-

1. What is micro service Architecture and advantages


2. How to create a simple microservice application?
3. What is normal Service and Microservice
4. How Microservice communicate each other: synchronous and
asynchronous communication.
5. What is 12 factor principles and SOLID principle
6. What is API gateway, service discovery and circuit breaker design
principle (Zuul, Eureka and Hystrix)
7. What all design patterns available in microservice Architecture
8. How to manage transactions in microservies
9. How to monitor microservice
10.How to implement authentication and authorization in microservice
11.What is rabbit MQ
12. What is MongoDB and its advantage, where to use MongoDB

Extras:
● Stream to find name from list
● Concurrent modification exception
● Find occurrence of words in a file / find value in integer Array/ second
highest
● How to secure microservice
● How to Check code quality coverage
● Customize autoscaling by own strategy
● Exclude tomcat server, disadvantage of spring boot
● Asynchronous calls of springboot
● SOLID principle

● What is an ECS container instance?


● What is difference between ECS and ec2?
● Docker and containerization
● Image
● CloudFormation , ECS , CLoudwatch Terraform
● Jenkins
● SQL Questions :
● Aggregate functions , second highest salary , cursor trigger ,indexes
advantage n disadvantages , function and procedure
● Mongo db disadvantages
● Queue and Topic
https://stackoverflow.com/questions/5576415/jms-topic-vs-queues

MANAGERIAL QUESTIONS OR INTERVIEWER

HR DISCUSSION after selection or SALARY


DISCUSSION
14- What's your day to day work life in current company.
We work in AGILE.
In Sprint I use to get some user stories assigned and start
development.
Every day in scrum call we need to give updates like what we did
yesterday, what we are planning for today and if any blocker.
At the End of Sprint there will be a DEMO with Client where we
show our changes to client and ask for feedback.
In the last there will be retrospective meeting where we will document
good practice and improve previous mistakes so we deliver better
quality in upcoming sprint.
15- Tell me about your company and project?
This is a small company around 400 employees and currently i am
working for Barclays Client. In current Project I am working as
backend developer .
This is Migration Project and we are re writing all the services in
java,spring boot microservices.
Previously this monolith application was developed in dotnet and now
we are writing services in java spring boot microservices.
We have migrated around 10 microservices in Production and slowly
we are migrating others also.
16- You are working for which customer?
i am working for Barclays Client. In current Project I am working as
backend developer .
This is Migration Project and we are re writing all the services in
java,spring boot microservices.
17- Why you want to join us?
I always wanted to work with big MNC like your company where I
can learn more and grow myself .
It will help me to build better career .
18- Tell me about your weakness and strength?
I am quick learner I can learn things quickly , in my project i have
learned spring by myself only by watching some training videos .
My weakness is i am an emotional person.
19- Tell me about your short term and long term goal?
Short term goal is doing cloud certification and long term goal is i
want to become Architect in Technical Areas.
20- Are you comfortable in learning new technology or work on
different technology?
Yes, it will help me to learn more technologies and make my profile
stronger.
21- Are you comfortable with working late hours if needed?
Yes, sometime we need work extra if there is a demand because we
always wants to meet our project expectation.

22- What is the best thing you did in your project


I have given training to fresher’s for java in my team , I use to help
new joiner of my team apart from my work, it was appreciated by my
manager
23- How soon you can join us, what's your your expectations from
our company?
● DAY to Day activities in your project : explain AGILE

● Tell me about your Current Project:

Currently I am working for banking Application, where we are re


writing the entire application from Monolithic into Microservices and
deploying it to Cloud platform (PCF).
We have migrated around 30 % of existing application to micro
services:
OLD Technology: DOT NET AND MAINFRAME
NEW Technology: Java, Spring Boot and PCF
1- ACCOUNT OPENING MS : when customer wants to open account then
this ms will take care of opening bank account , it apply few business
validation and creates account .
2- SEARCH NEAREST BANK MS- T his ms is to search nearest bank by
passing city name or pin code of location and it will populate all the
nearest back .
3- UPDATE CUSTOMER ADDRESS DETAILS MS
This ms will take care of updating customer address details like home
address and current address etc.
4- UPDATE CUSTOMER PERSONAL DETAILS MS
This ms will take care of updating customer personal details like
mobile number, age, DOB, phone number.
5- LOGGING MS-
This ms is used to do centralized logging to log all the transactions to
log file so we can trace all the request status and details
6- DOWNLOAD STATEMENTS MS
Phone This ms will used for downloading various kind of statement
related to the customer based on account type like Credit card
statements or bank statements etc.

RLT : Resource Leadership Tool

RLT application used for scheduling and managing/tracking banking related


activity of Bank Employees.
1- Assign banking activity Module :
2- Leave Management module :
3- Financial Reporting and utilization reports module :
4- Onboard new employee module :
5- Internal Learning and Training Module :

Technology: Spring MVC, Thymlief , Oracle Database

You might also like