Psa Interview Question
Psa Interview Question
4. Constructor chaining.
16. Programs: -
• Sorting of Array
Spring Boot
4. @Qualifier.
6. Spring Initializer.
7. Spring Actuator.
Hibernate
4. Mappings in Hibernate.
SQL
5. Self-join in SQL.
6. DDL Vs DML.
Extra Questions
6. JSP tags.
1. Oops concept? Explain briefly with example.
2. JDK, JRE and JVM. Is java call by value or call by reference?
3. What is Class Loader?
4. What are access specifiers in java?
5. Difference between abstract class and interface?
6. What are the new features are there in Java 8?
7. Difference between Java 7 and Java 8?
8. Why string is immutable?
9. Difference between string, string buffer and string
builder. When to use string, string buffer and string
builder.
10. What is boxing and unboxing?
11. What is constant pool?
12. What are the types of memory in java?
13. What is static keyword and difference between static and
non-static?
14. Difference between return and return value?
15. How many types of variables are their java?
16. What is var type in java?
17. Difference between final, finally and finalize.
18. What is constructor? How to call parent class constructor
in child class?
19. What is Constructor overloading and Constructorchaining?
20. What is default constructor?
21. What is Functional Interface in java? Can you inherit
functional interface?
22. What is Lambdas Expression?
23. What is optional class in Java 8?
24. Why main method is Static?
25. What is Sam (Single Abstract Method) Interface?
26. What is marker interface? What a l l marker interface are
there in Java?
27. What is exception and how to handle exception in java?
Exception hierarchy.
28. Different between exception and error?
29. Can we write try finally without catch?
30. Why to use finally block in try catch? Example.
31. Difference between throw, throws and throwable.
32. How to create custom exception? Write code.
33. Suppose there is three class and each class is
independent with each other if exception occur in last
class then how to handle it in first clas?
34. Can you write multi catch block?
35. What is serialization? Why we use serialization?
36. What is transient keyword?
37. What is thread?
38. Explain thread life cycle. What is thread pool?
39. What is multithreading?
40. Difference between thread and process?
41. What is thread join?
42. Difference between wait and sleep.
43. Difference between wait, notify and notify all.
44. What is thread synchronization?
45. What is type casting and class casting?
46. Difference between. equals () method and ==.
47. What is aggregation, association and composition?
48. Garbage collection in java.
49. Output:
System.out.println(i == j);
Collection
Framework
1. What is collection?
2. Difference between List and Map.
3. Difference between Array list and Linked list.
4. Difference between List and Set.
5. Difference between Array and Array List.
6. Difference between Vector and Array List.
7. Difference between Vector and Queue.
8. Difference between Hash Set and Linked Hash Set.
9. Difference between Hash Set and Hash Map.
10. Difference between Hash Map and Hash Table.
11. Difference between Hash Map and Linked Hash Map.
12. Difference between Tree Set and Tree Map.
13. Difference between Comparator and Comparable.
14. Difference between Iterator and Iterable.
15. Difference between Collection and Collections.
16. What is Collison?
17. What is Iterator?
18. How to iterate list?
19. How to iterate map?
20. What is Fail Safe Iterator and Fail Fast Iterator?
21. How to remove duplicate entries from an Array List using
stream?
22. How to add only unique records in Array List?
23. What will happen if you don’t override hashCode() method
and equals() method?
24. How hash table works internally?
25. How to sort a collection? How many ways to sort a
collection?
26. How to add a collection in another collection particular
index?
27. How to compare two collection?
Hibernate
1. What is Hibernate?
2. What is ORM?
3. What is HQL?
4. Difference between JPA and Hibernate?
5. Difference between JDBC and Hibernate?
6. What is JPA?
7. What is persistent in Hibernate?
8. What is session in Hibernate?
9. What is session factory?
10. What is session?
11. Difference between get() method and load() method.
12. What is lazy loading in Hibernate?
13. How many types of association mapping is there in
Hibernate?
14. What are the key components are in Hibernate?
15. What is transaction in Hibernate?
Advanced Java/ J2 EE
1. Write down the code for JDBC.
2. Difference between doGet() and doPost() method.
3. Explain Servlet life cycle.
4. What is session in servlet?
5. What is request dispatcher?
6. What are the features available in Spring Boot?
7. What is spring initializer?
8. Difference between spring and spring boot.
9. What is spring IOC container?
10. Explain bean life cycle.
11. What are those spring starter available in spring boot?
12. What do you mean by Dependency Injection?
13. What is bean factory?
14. Bean scope?
15. What all annotations you know in spring boot?
16. What is spring MVC?
17. What is spring profile?
18. What is spring security?
19. What is application.property file in spring boot?
20. What is spring actuator?
21. How to connect spring boot with the database?
22. Difference between @Controller and @RestController.
23. How to use two database in spring boot?
24. What is web services? Types of web services?
25. Difference between Monolithic and Micro services?
26. How you tested web services? Tool you used.
27. What is idempotent?
28. Status codes 201, 501, 500, 203, and 404.
29. What is PACT and OAUTH?
30. What is post man?
31. What all HTTP method you used in your project?
32. How to expose web service and consume web service.
33. How to send email and write code? Which dependency
you added for this?
34. What all micro services you know?
35. How you managed you codes or How to share your codes
with seniors?
36. Which design pattern you follow in your project?
java 8 features
Lambda expression
Throw and throws keyword Final finally finalize Hashmap and
hashtable Exception Immutable class @controller and @Rest
controller
Capgemini
Java 8 features Access Specifiers
Arraylist and linkedlist Abstract class and interface @autowired
@requestmapping@ getmapping Oops conceptRuntime polymorphism
Checked and unchecked exception FinalFinally serialization Overloading
and overridingHow to connect 2 tables in spring application Project
explanation
Newgen
Polymorphism Overriding and overloading AbstractionEncapsulation
Lambda expression Functional interface Hashmap Arraylist and
LinkedList Transient keyword Synchronization ORM tool Project
Fujitsu
New features of java array list and linked listmultiple inheritance
possible in java How to change port numbersalary query from a table
SQL string constant pool string objects stored in string constant pool or
stack ? Status codes in Postman try catch finally encapsulation and
abstraction hash map @Rest controller and @controller difference
@getmapping and @ request mapping Get and Load Session Factory
and Session what is multithreading, multiprocessing, multitasking and
what is interface . .y in java 8 default keyword introduce in interface,
difference between string bufferand string builder, what is immutable
class how u will implement, what is exception and hierarchy, what is
the difference between microservice and rest API, which collection u
have used in ur project...
CORE JAVA:
1. Difference Between Object oriented programming and
procedure oriented programming.
2. Is Java 100% object oriented programming language.
3. Difference between jdk and jvm.
4. Why pointers are not used in java.
5. Explain 4 basic oops concepts.
6. Functional interface and Lambda’s expression. How these two
are related to each other.
7. Use of marker interface.
8. What is object class and Which methods are present in the
Object class.
9. Difference between abstract class and interface .If there are
interfaces present then why we use abstract class.
10. Difference between final,finally and finalize.
11. What is Exception handling and Explain Exception handling
hierarchy .
12. Difference between throw and throws keyword.
13.What is serialization and deserialization.
14.Use of super and this keyword.
15.Explain Thread Life Cycle, wait and sleep.
16.How threads are created.
17.String Builder and String Buffer.
18.Program on Comparator and Comparable.
19.Collections:
20.Difference between collection and collections.
21.Difference between Arraylist and Linked List.
22.Difference between Array and Arraylist.
23. Hashmap and Hashtable.Which one is used for better
performance.
24. Program to retrieve 2nd element of the list from the bucket of
Hashtable(Collision).
25. Difference between Hashmap, Hashtable and HashSet.
26.Program to store and retrieve data from the Hashtable.
27.Internal working of Hashmap.
28. What is Hashcode and Hashing
technique.29.Write a program for reverse of
an array Advanced Java:
PROGRAMS->
SQL->
• Foreign Key Vs Primary Key.
• Drop Vs Delete Vs Truncate Command.
• Joins and their types.
• DDL Vs DML.
DDL DML
• DBMS Vs RDBMS
• SQL Vs MYSQL Vs NOSQL
• Normalizations
Normalization is the process to eliminate data redundancy and
enhance data integrity in the table. Normalization also helps to
organize the data in the database. It is a multi-step process that
sets the data into tabular form and removes the duplicated data
from the relational tables.
• Relationship in SQL and its types.
In One-to-One relationship, one record of the first table will
be linked to zero orone record of another table.
In One-To-Many relationship, A single record from one table can
be linked to zero ormore rows in another table
In Many-To-Many relationship, there is a junction table created
which holds the primary keys of another tables and marked as
foreign keys.
e. Spring MVC.
A Spring MVC is a Java framework which is used to build web
applications. It follows the Model-View- Controller design
pattern. It implements all the basic features of a core spring
framework like Inversion of Control, Dependency Injection.
n. Types of Auto
Wiring.
1. no
2. By name
3. by Type
4. Constructor
5. AutoDetect
18. HIBERNATE->
A. What is ORM ?
B. Hibernate Vs JDBC.
JDBC Hibernate
g. Hibernate Architecture.
The Hibernate architecture is categorized in four layers.
a. Java application layer
b. Hibernate framework layer
c. Backhand api layer
d. Database layer
h. IOC Container.
The IoC container is responsible to instantiate, configure and
assemble the objects.
i. Get () Vs load().
Get ( ) Load ()
If you are not sure that object exist If you are sure that object
then useget() method exist then use load()
method
Lazy Eager
Collection
Hashset
1) List: - list is an interface.
List follows insertion order. It consist of
duplicate elements. To use list interface we can
use three classes.
i. Arraylist
The ArrayList class is a resizable array, which can be found in the
java.util
package.it is internally work like a dynamic array.
ii. Linkedlist
We can use linkedList if there is no continuous memory of
location. Adding data is easier than arraylist.it divided into 2
types – i)single LinkedList , ii)Double LinkedList.
iii. vector
It work same as array but it is synchronized and give lower
performance than ArrayList
2) Set : Set interface doesn’t follow any insertion
order and can’t contain duplicate element.
We can use set interface by 2 classes. i.Hashset
It uses hashtable internally.it contains only unique element. It is
synchronized and it doesn’t
permit null element. It is the parent class
of LinkedHashSet. LinkedHashSet use for
remove duplicate element from an array.
ii.Treeset
It is use for sort data in ascending order.
3) Queue:-
Queue is the parent interface of priority queue. Priority
queue is follows FIFO(first in first out) order for adding and
removing data. 102. Difference between ArrayList vs
LinkedList and Vector?
ArrayList stores in continuous memory location where
LinkedList doesn’t required a
continuous memory location. ArrayList is non-synchronized
where vector is Synchronized
103. Explain HashSet and HashMap?.
HashMap HashSet
synchronized Non-synchronized
Comparable comparator
collection on the basis of a single can sort the collection on the basis
element such as id, name, and of multiple elements such as id,
price. name, and price etc.
108. What are unary operators and its example?
109.
Enumeration Iterator
languages, whichtakes three operands rather than the typical one or two
ex:- ++, --
fast.
several times.
121. What are Session Variables and its type?
It is a special type of variable which value can be access by
across the web pages.
State Server mode, SQL Server mode, Custom mode and Off
mode.
and include directive use to import any file into the page
Jsp init
object as parameters.
Jstl stands for jsp server tag library .we can write java code in it,
in form of html tag.
These are the readily available object present in jsp page ex:-
session,response ,request ,out .etc.
supported.
SOAP RESTFull
Data exchange using xml file Data exchange using both xml file
xml file
What is POSTMAN?
document APIs
services
What is Maven?
What is Junit?
What is JPA?
relationship mapping).
I)BeanFactory ,
II) ApplicationContext
DB.
@Autowired,@controller,@service,@component,@R
equestMapp n,
@RequestParam,@RestController,@GetMapping,@P
ostMapping,
@PutMapping,@DeleteMapping,@pathvariable,@m
odelAtteribute,@RequestBody,@Qualifier,@springB
ootApplication
Default
By name
By type
constructo
122. Difference
between
@Controller and
@RestController?
Explain @SpringBootApplication?
by using hibernate
Database.
Properties.
HttpSession mySession=request.getSession( );
- Configuration interface
- Transaction interface
What is Jenkins?
What is JIRA?
Jira is a software application used for issue tracking and project
management.
200/201/204/400/401/403/404/405/500/503
,timestamp ,calendar
Binary and Large
Object Types(binary
,text ) Jdk related type
(class,timezone)
and
JVM?
When .java file compiled into .class file it convert into byte code
by JIT compiler
.and this byte code can use any platform because of jvm.
179. Why Java is not 100% Object-oriented?
In these class only one object can create throughout the class.
To design a singleton class: 1 Make constructor as private. 2
singleton class.
synchronized where
array list is non- synchronized.
child class
When more than one classes have only one child class called as
multiple inheritance. In classlevel multiple inheritance doesn’t
support but in interface level it supports.
encapsulation.
109. Which one will you prefer among spring and springboot
to create a program from scratch?
Hibernate-Interview Questions
110. What is Hibernate Framework?
121. Will the finally block get executed when the return
statement is written at the end of try block and catch
block as shown below?
134. What are the differences between Heap and Stack Memory
in Java?
Three Types:
1. Bootstrap Classloader
2. Extension Classloader
3. system classloader
147. Why Java Strings are immutable in nature?
Ans:- The main difference between Array and ArrayList is that Array
is a fixed length data structurewhile ArrayList is a variable length
Collection class.
database commit.
ClassNotFoundException
NoClassDefFoundError
Ans:- ľhe opeíations which íetuín anotheí stíeam as a íesult aíe called
inteímediate opeíations and the opeíations which íetuín non-stíeam
values like píimitive oí object oí collection oí íetuín nothing aíe called
teíminal opeíations.
Ans:- flatMap would peífoím mapping each aííay not with stíeam but
with the contents of that stíeam. All of the individual stíeams that
would get geneíated while using map(Aííays::stíeam) get meíged
into a single stíeam.
o Endpoints
o Metrics
o Audit
wheíe you made a mistake. ľheíe aíe diffeíent status codes, and
each of the status codes has diffeíent meanings.
• Types:-
The session objects should not be kept open for a long time
because they are not usually thread safe and they should be
created and destroyed them as needed. The main function of the
Session is to offer, create, read, and delete operations for
instances of mapped entity classes.
Psvm(){
List<Integer> evenNum=data.Stream().filter(x-
>x%2==0).collect(Collectors toList());
Sop(evenNum);
Ans:- The key distinction is that the DDL command is used to create a
database schema, while the DMLcommand is used to modify the table's
existing data.
o CREATE
o DROP
o ALTER
o TRUNCATE: It is used to completely remove all data from
a table, including their structureand space allocates on the
server.
o RENAME: This command renames the content in the
database.
1. Threads
• What is a thread
• Different ways to creates a thread
• Where thread are used
2. Collections
• Explain collection concept
• Difference b/w array list & linked list
• Difference b/w Hashmap and Hashtable
• Difference b/w Hashset and linked Hashset
3. What are the features of Java 8 explain all
4. JSP life cycle
5. Thread life cycle
6. Strule of cycle
7. Words a code for connecting to the database
8. Words a code for printing duplicate elements
9. Words a code for printing the occurrence of each element
10. Words a code for reusing a number and string
11. Words a code for printing Fibonacci Serves
12. Explain oOps concept
13. Different b/w Infrared and abstract class
14. What is marled Interface
15. Sterilization & dissterilization
16. Explain constructions and what is construction chaining.
17. Difference b/w static, non static variables
18. Difference b/w method and construction
19. Multiple catch block
20. Exception handling
21. What is spring boot, how etc work
22. All the annotation used in the
COMPANY HOME:- Reorient Questions
1. What is selenium
2. When do the Automation testing
3. What is locates
4. Types or locates
5. Different steps absolute anal relative x-path.
6. What is testing and their annotation
7. Some airing secretion based question
8. Different Seth retest and regression testing
Company names & quality Kiosk (mumble)
Question
1. Mosting focus on opens concept
2. What is exception
3. How to handler expectation in Java
4. Diff better throw, throw
5. what is try and catch block
6. diff better final, finally, finalized
Company name: Junera Teem
1. Asking only selenium questions
2. Locators, types
3. Testing, denotation
4. Pem
5. Asking about project in second round and agile
methodology etc
• Introduce yourself.
• MySQL is RDBMS?
1. OOPS, Concept
Inheritance
Abstraction
Encapsulation
Polymorphism
2. What is Java?
2. What is singleton?
5. What is session?
8. Explain DI?
8. Project explanation
8x1-2=6
6 x 2 – 3 =9
9 x 3 – 4 =23
2. PROGRAMS->
4. SPRING BOOT->
INTERVIEW QUESTIONS
OCT 2021 TO NOV-2021
1. Explain your project briefly
2. How many user stories you worked on during your project
development
3. How many times you attended Spring retrospective
meeting, how many and whom are there in the meeting
4. How many times scrum meeting you attended, what was
discussed in that meeting
5. How much time you took to complete one sprint
6. What are roles of srcum master
7. Size of team
8. What are Burn down/up charts , have you managed them?
9. What is discussed in sprint review
10. Day to day working how its done
11. Design patterns (singleton, prototype)
12.How to achieve singleton pattern if we can break them
using clone and reference
13. What is Junit testing
14. How to test controller service layer and data base
15. What is mocking
16. Write test case in Mockito , mock MVC, integrity testing
17. Explain REST API
18. How to implement REST API
19. How to explore JSON object
20. Difference between @RestController and @Controller
21. @SpringBootRun explain
22.Difference between @Configuration and
@Autoconfiguration
23. @Component and @Service Difference
24. @Mock annotataion explain
25. @Qualifier annotation
26. How to consume query parameter
27. Classes used to consume JSON object
28. Why to go with Microservices Architecture
29. Stream API explain in brief
30. Write a stream code for given condition
31. Lambda Expression
32.Predicate, function, consumer, supplier syntax, parameter
and return type for these
33. Functional interface, predefined fuctional interface names
34. Difference between map() and flatmap()
35. Filter() in stram
36. Collection and Collections difference
37. Diff bet array and arrayList
38. Difference MAP and SET
39. Difference between treeset and hashmap
40. Difference List and Set, Hash map Hash set
41. HashMap internal Working
42. How to add elements in Hashmap
43. Where to use hashmap and where to use hash set
44. Where to use linked list and where to use arraylist
45. Difference between hashmap and hashtable
46. Which data structure followed by hashmap and hashset
47. Which DS followed by list
48. DS followed by Queue and methods in it
49. Program to find duplicate element from an array
50. Non repeatating character from string
51. Swapping two variables without using third variable
52.Maximum addition of any two integers from an integer
array
53. Difference between truncate, drop, delete
54. Sql queries like third max salary
55. Joins
56. Difference between SQL and Mysql
57. What are integrity contraints
58. Stored procedures
59. Explain Index
60. How many indexes are there and what are they
61. Composite key
62.Explain group by order by and having clauses, queries
based on that
63. Difference between union and union all
64. DDL commands
65. DML commonds
66. What is TCL and what are the commonds included
67. Difference between DDL and DML
68. Difference between hibernate and Mysql
69. How to configure hibernate
70. All spring boot annotations
71. Difference between JPA and Hibernate
72. Why hibernate over JDBC
73. How to handle exceptions in hibernate and spring boot
74. How to do itext pdf configuration
75. Exception handling
76. Final, Finally and Finalise
77. Static and default methods
78. pillars of java
79. method overloading and overriding, code snippet on that
80. how to make a class immutable
81. why string is immutable
82. difference between equals and ==
83. difference between comparator and comparable
84. how to make a string mutable form immutable
85. Explain session factory
86. Configuration code for hibernate
87. Type and class casting code snippet
88. Programs on try catch finally
89.What is dependency injection and how many ways we do
that
90. Hibernate mapping
91. How to achieve many to many mapping in spring boot
92. What is JPA
93. JSTL and in built objects in JSTL
5. HIBERNATE->
A. What is ORM ?
B. Hibernate Vs JDBC.
C. Session and SessionFactory in hibernate.
D. Lazy Loading in hibernate.
E. Caching in hibernate (Indepth).
F. How to create immutable class in hibernate.
G. Hibernate Architecture.
H. IOC Container.
I. get() Vs load().
NOTE-> (All the annotations of SPRING BOOT and
HIBERNATE arevery important with their usage).
1. Entity class
2. ORM
3. Collection
6. Class Object
7. Instance variables
1. Java 8 features
6. Optional class
7. Qualifier annotations
8. Exception in microservices
9. Custom exception
12. Microservices
Zafin
1. Entity class
2. ORM
3. Collection
6. Class Object
7. Instance variables
03. How does data driven work... Write code for same
Questions
1. Introduce yourself
3. STLC
5. What is selenium
16. Have you ever been criticised before.. how to deal with it
17. Encountered any conflicts with colleagues?
Collection
Overloadingand
Overriding 2.New
feature of java 8.
3.Diffrerence between
4.Constructor
overloading method
overloading
5.Encapsulation.
IDC
1. WAP How we
perform web
services
2.Introduced
your project .
CGI ( I,II) 1 Rounds
1. Can we compile code without main.
2. Which block execute before main
3. If we have SIB and IIB
Benefits .
2 Round
Explain OOPS concepts with where your using in your project.
1. Differences between Array and Array List.
2. Differences between Array list and vector.
3. New Features of java 8
4. Explain program of palindrome number.
5. Overloading and Overriding
6. Why string is immutable.
7. Difference between spring and spring boot.
8. Explain spring MVC .
9. Annotations Controller, Rest Controller, Component,
Configuration, Qualifier, Query.
10. Explain how we calculate second max salary
11. Explain JPA hibernate.
12. How we create own query in spring boot.
13. @Eureka Spring security.
HCL
10101, 01010,10101
the
01010, 10101 All repeated questions.
2nd Round
1. All OOPS concepts with code
2. And sql queries
3. Project explanation
4. Joins
Vertusa
1) oops
2) most of core java(out of 45 qstns gvn by sir)
Programs
oops full
Hr round:
4) palindrome on integer
2nd round:
2) annotations
1) documents
2) date of
Verizon
1st round
2nd round
1) all annotations
2) project related qstns related to repository layer custom query
Hr round
1) oops
2) overriding overloading program
4) pallindrome program
5) file reader and file writer program
6) serialisation program
7) tree set program
2nd Round
3rd round
1) documents
2) about address and doj :
Fulcrum (ikrux)Told to write query, Then about spring bootProject
Explaining Core Java
- enumeration
-collection
-oops
- java 8
- optional class
- functional interface
- logic of pgm ( reversing a string )
- Spring boot
-@ autowired
-Starters
-Actuators
-Dependency injection
-Definition of microservices
Comparators
Collection (array list, linked list,
hash set)Collision
Serialization
Where do we use
serialization?
Polimorphism
@controllers and
advantages
Xoriant
Deadlock
What are the Memories available
Architec
in project Database
constant pool
cognizant
1. explain about your project
2. how, you implement microservices
in your project 3.How to implement
your webservices
4.Java 8 new features ( this features u used in
your project) 5.Which collection concepts u used
in your project?
9.spring MVC
10 spring boot Annotations.
All annotations 11.oops
concept
12.some other questions base
on projects 13.Diffrence
between array list and link list
14. WAP Array list program
15. difference between list and set
16. Microservices features
HCL
1.Write a query to sort the element in ascending
order2.Difference between static and non-static
2 nd round
1 Java is the functional programming language or
object-orientedlanguage
difference betweenthem
8. How u used web service in your project implementation
of web servicesin spring boot implementation micro
services in your project
TCS
1. What is spring pool
2. Diff bit spring and spring boot
3. Diff but @rest controller and @controller
4. What is @rest controller
7. Diff .equals and =
9. What is thread class
10. Did you use any design patterns?
11. Explain single turn design pattern
12. Diff bit string buffer and string builder
13. Why string is immutable
Umlaut Accenture
7. Join in SQL
Tech-2 (Chennai)
Tech – 1 (Noida)
5. Stream API.
6. Concurrent hashmap
7. Joins in SQL
Tech-2 (Noida)
POLYMORPHISM
OVERRIDING AND
OVERLOADINGTYPE CASTING
UPCASTING
DOWNCASTING
ABSTRACTION
ENCAPSULATIO
N LAMBDA
EXPRESSION
SAM
INTERFACE
HASHMAP
TRANSIENT KEYWORD
SYNCHRONIZATION
ORM TOOL
COGNIZANT INTERVIEW
1. JAVA VERSION
2. WHAT ARE THE EXCEPTION BLOCKS
8. PREPARED STATEMENTS
9. SINGLETON PATTERN
12.BRIEF PROJECT
16. WHY USE SPRING BOOT AND WHY XML FILE OVERJSON
Downcasting with
example. 4.Java 8
features.
5. Write a program of
validating mobile number?
6. Explain Internal
HashMap? 7.Why do we
Interface?
11.Difference
between ArrayList
and LinkedList.
12.Arraylist
Implementation?
linkedlist Structure?
19.what is
difference between
== and Equals().
20.Exception
hierarchy.
program to
reverse the
string?
5.Explain
Hibernate
Internal
working.
6.Program on
Upcasting and
Downcasting.
7.Remove
duplicate
elements from
Array. 8.Stream
API
programmes.
scopes of Bean in
Spring Boot?
2.What is singleton
design ?
3.What are the ways of
auto-wiring in spring
execution started in
Spring Boot?
your project?
9. What are
executor
service?
10. Different
types of Web
Services?
11. Difference
between REST
and SOAP?
Downcasting with
example. 4.Java 8
features.
5.Write a program of
of Hashtable and
HashMap? 7.Why do we
Interface?
11.Difference
between ArrayList
and LinkedList.
12.Arraylist
Implementation?
linkedlist Structure?
16. what is
SQL
Normalizatio
n?
17. explain
joins in
sql?Types of
joins.
18. Foreign
and Primary
Key?
19. what is
difference between
== and Equals().
20.Exception
hierarchy.
javascript?
3-C……
8. Write a
program to
reverse the
string?
5.Explain
Hibernate
Internal
working.
6.Program on
Upcasting and
Downcasting.
7.Remove
duplicate
elements from
Array. 8.Stream
API
programmes.
scopes of Bean in
Spring Boot?
2.What is singleton
design ?
execution started in
Spring Boot?
your project?
9. What are
executor
service?
10. Different
types of Web
Services?
11. Difference
between REST
and SOAP?
Vareli
Introduce yourself
achievement in your
What is abstraction
Give some
the output
Sting buffer vs
string builder
Why string
buffer is
thread
safe? What
is thread
Difference btw
boot annotation
Primary annotation
Collection
and
collectios
String
buffer
and string
builder
Vector
Difference between
the string as a
character
18. S
1) oops concept
2) threads
4) encapsulation program
7) collections hierarchy
8) exception types
Cognizant
*Which version of java u used in ur project.
*Java 8 features.
*Streams of java.
*What is postman.
Xoriant
1) Java 8 features
between list
and set
4) Hash map
working
6) what's multi
create it 7)ways of
reverse a string
program
8)
wt's
micr
oser
vice
and
web
seri
es
and
how
u ll
impl
eme
nt
in
ur
proj
ect
12)
wts
vie
fro
SQL
14) excepti
on
handling in
java
15) oops
concepts
on string
abstract
difference
22)final and
immutable
classes in java
3) what is
lifecycle?
4)what all
Junit
methods?
5) what's is postman?
28) What is string pool stack and heap memory concept.? How
many object will be created with new keyword?
29) With different scenarios
41) Can we override static method What will happen ifwe try
to override static method.
45) Can we use final keyword with class name. What isthe
real time use of final keyword. Where you haveused it in
your project.
*Thread*
100) What types of exception you got in project and how you
handled it?
101) *JUNIT*
ADVANCED JAVA
123) *Hibernate*
139) Diff between do get and do postDiff between post and put
177) Get 1st non repetitive element in the given string Remove
duplicates from String and array
178) Sort the given string then find the mid element andprint the
sum of even numbers
INTERVIEW QUESTION
Interview Questions
1. Spring Security
2. Authorization vs Authentication
3. Polymorphism
4. Can we override private methods
5. What is the return type of Overloading method
6. Switch program like case 2 and case 3 execute with same
statement
7. Create a method which can pass n number of argument of
string
8. Http response status codes like 500, 503, 400, 202, etc.
9. Aggregation vs Composition
10. Is java pure object oriented?
11. Runtime polymorphism and compile time polymorphism
12. Singleton Design Pattern
13. get() vs load()
14. Why Hibernate
15. Hibernate cache
16. Many to Many example
17. LinkedList vs HashMap
18. Main difference between HashTable and HashMap
19. Sql queries - create table, write select query
20. Exception & How to handle it
21. List vs Map
22. Write a program for email validation
23. How to generate pdf
24. How to configure email sending services in your project
25. OOPS concept
26. Controller vs Rest Controller
27. What is the scope of spring bean
28. Singleton design pattern & it’s code
29. Dependency Injection
30. Fail-fast vs Fail-safe
31. ConcurrentModificationException
32. SQL Joins
33. Primary key
34. Foreign key
35. DDL & DML
36. Delete vs Truncate vs Drop
Spring Security
Hibernate.
12.Where did you change the part No. (tell me that line of code)
13.Which is the starting point of your applications (explain flow)
14.Where did you used collection concept in your applications
15.D/f b/W JPA & CRUD repository.
16. Explain JSTL tags.
17. What in API & which API in used in your application.
18.D/f b/W controller & part controller.
Webservices.
1. Explain webservices & which all annotation in used & types
of webservices.
2. Explain the structure of J8on.
3. Explain postman & nttp methods & error code.
Spering boot
8. How you read front end data in the backend (which all
ways & what annotation)
9. What all methods you used in services loyer in order to
perform CRUD operations.
10.Where did you implemented hibernate in you application&
which all loyers of hibernate & its annotations (version)
11. What in dependency injection & what are different ways.
12.Spring I oc & where did you used oops concept in your
applications.
13. What in rollback & commit.
14. Explain normalizations.
15. They are asking some questions on agile.
16. Logical questions.
1. Palindrome No/string
2. Prime No.
3. Reverse a string
4. No of words in a given string.
5. How to find a duplicate element in an array.
6. Short on array & find maximum & minimum Valarie’s in on
array.
7. Armstrong No. & Fibonacci services
8. Explain Eager loading & lazy loading.
SQL
Citius tech
1. Java 8 features .
2. @functional interface.
3. Abstract class vs interface.
4. Singleton class
5. What is immutable class? Eg of immutable class in java.
6. String vs string buffer vs string builder
7. What is thread sole
8. Arraylist vs vector
9. How to make arraylist synchronized
10. Internal working of hashmap.
11. Spring vs springboot
12. How you connect with database in springboot
13. Default server of springboot
14. Can you change the server
15.Have you ever got the error like server port B already in
use? How you resolved it
16. What is hashset
17. What is monolith architecture
Kloud Partal
1. Advantages of springboot
2. What is constructor
3. Arraylist vs linkedlist
4. Hashtable vs concurrent hashmap
5. Depending management
6. What is maven? How you configured moven
7. @ request pardon & @ path variable
8. Overloading & overriding.
9. What is SQL & my SQL
10. What is “as” in SQL
11. JPA vs hibernate vs spring data JPA
12. What B d/w database of database table.
Cognizant
1. Advantages of oops
2. What is overriding & overloading
3. What is abstract class
4. Of there is a abstract class & the implementation of
abstract class so how to call the method.
5. Data boxing of data unboxing
6. What is arraylist
7. d/w arrcylist & likedlist.
8. How arraylist increase the size.
9. In which scenario we should use arraylist of linkedlist.
10. d/w set & list
11. d/w threeset & hashes
12. how the hashset internally works.
13. d/w “ = =” & “ equals”
14. d/w thread of process
15.which is should we prefers tread class or runnable
interface.
16. How thread will communicate with each other.
17. What is wait( ) of sleep ( )
18.Where this method are present? Why this method are in
object class.
19. If we are using h.start ( ) two times what will hoppen.
20. Which servers comes by default with SB.
21. How the change the part.
22. How year connecting with database.
23. How mapping happening in hibernate.
24. Gives me the ex of queries which years written in project.
25. One inner join question
26. What is group by & order by.
27. Scope of bean? Default scope
28. How to change the scope.
29. @auto configuration.
30. What type of security using in SB.
MERCEDESE. BENZ
Orate
4. Integer a=5;
Integer b = 5;
If (a= b) £
S.O.P (true) ; - o/p:- true £ else £ S.O.P (false);
Collabra
2.@qualifier
@rest controller
MERCEDES BENZ
27. What are the differences between Get and Post methods?
40. Which one will you prefer among spring and springboot to
create a program from scratch?
Hibernate-Interview Questions
41. What is Hibernate Framework?
42. What are the differences between get and load methods?
54. Will the finally block get executed when the return
statement is written at the end of try block and catch
block as shown below?
60. What is a finally block? Is there a case when finally will not
execute?
61. What is synchronization?
62. Can we write multiple catch blocks under single try block?
Collections-Interview Questions
72. What are the differences between Heap and Stack Memory
in Java?
Miscelleneous Question
8. Reduce() method?
Tips:-
6) If you rally don’t know the answer directly say sorry sir I
don’t about it definitely I will learn about this for sure
In SQL
1) What is the query to find 2nd max or 3rd max or nth max
salary in employee table