You are on page 1of 3

Technical Questions: -

 Diff. B/W Overloading And Overriding


 Can We Override The Private Or Static Method?
 Diff. B/W Abstract Class And Interface And Tell Me The Use
 Data Hiding And Encapsulation
 Can We Make Constructor As A Final

 Define The Association, Aggregation And Composition-


 Internal Working Of Hash Set
 Fail Fast And Fail Safe Condition
 Serial Version Uid
 Create Own Functional Interface-
 Diff. B/W Function Ad Predicate
 Use Of Optional Class

 Diff. B/W Map And Flat Map


 Diff. B/W Meta Space And Permgen
 Handle The Stack Over Flow Error
 Design Pattern- Singleton, Factory Design Pattern
 Implements Of Serializable In Singleton
 Use Of Singleton And Factory Into Single Application

 Describe The Implicit Object Of Jsp


 Define The Life Cycle Of Jsp And Servlet- Not Remembered
 Define The Dependency Injection And Auto Wiring
 Life Cycle Of Bean And Describe The Bean Scope
 Define The Work Flow Of Spring Mvc

 Use Of Devtools, Profiles And Actuator In Spring Boot- Able To Explain


 Handle The Exception In Spring Boot Application- Able To Explain
 How To Disable The Java Class In Spring Boot- Able To Explain
 Diff. B/W Controller And Rest Controller-Able To Explain
 Diff. B/W Path Variable The Path Param - Able To Explain
 Sql Database- Define The Ddl And Dml Commands- Able To Explain

 Use Of Devtools, Profiles And Actuator In Spring Boot


 Handle The Exception In Spring Boot Application
 How To Disable The Java Class In Spring Boot
 Diff. B/W Controller And Rest Controller
 Diff. B/W Path Variable The Path Param
 Sql Database- Define The Ddl And Dml Commands
 how many joins ?
 diff. b/w Function and Procedure
 implement the spring security
 How to implement security in restful API?
 diff. b/w SOAP and Restful webservice
 Achieve the second level cache
 diff. b/w Load and Get method

"Java1.8 Features"
 Map vs Flatmap
 Grouping by Clause:
 Metaspace:
 Sequence vs parallel stream:

"Core Java questions"

 Custom immutable class


 Thread Local: not good
 Concurrent hashmap
 LinkedHashMap
 Method Overriding rules : JVM Architecture
 Singleton design patterns:not good SOLID principles

"Spring / Spring Boot"


 Spring bean life cycle
 Auto configuration internal
 IOC vs Dependency injection
 @Bean vs @Component
 Multiple databases in spring boot
 Response code
 Put vs Patch method

Topics discussed :-

 Stream API
 Map, filter, flatmap
 Sort hashmap by values
 What is entryset and Map.Entry
 Concurrent hashmap vs hashtable
 Default and protected access specifiers
 JVM memory model and garbage collection
 Immutable classes
 Singleton double check locking
 Linkedlist reverse iteration
 Rest controller vs Controlller
 Put vs patch vs post
 Enableautoconfiguration
 Qualifier annotations
 Diamond problem with multiple inheritance
 Serializable vs Externalizable
 Deep copy and soft copy with clone..
 SOLID design principles
 Reference types in java
 Bulkhead design pattern
 Circuit breaker pattern
 Inverse vs cascade in hibernate association
 First vs second level cache in Hibernate

CODING QUESTIONS
Suppose Single Linked List, Find the middle element without using inbuilt function?

1. You have an integer array like - int arr[]={1,2,3,4............100}; 1 element is duplicate. find that duplicate
value?
2. List of employee, find maximum age of employee using Java 8 features.
3. Suppose a Student table has two columns,Name and Marks.How to get names and marks of the top three
students.
4. List of employee object, Convert into map using Java 8, key should be employee ID and value should be
employee Object.
5. Given an array of random numbers,
6. Push all the zero’s of a given array to the end of the array.
7. For example, if the given arrays is {1, 9, 8, 4, 0, 0, 2, 7, 0, 6, 0},
8. it should be changed to {1, 9, 8, 4, 2, 7, 6, 0, 0, 0, 0}.

Code written by candidate


int arr[]={1,2,3,4............100}; List<Integer> int = Arrays.AsList(arr);
Set<Integer> set = new HashSet(); list.stream().filter(e->!
set.add(e)).collect(collectors.toSet()); Long maxAge =
listEmp.stream().max(Comparator.comparing(Employee::getAge)).get(); select
name,marks from student order by marks rownun < 3;

You might also like