0% found this document useful (0 votes)
4 views9 pages

Core Java Concepts and Programming Techniques

The document contains a comprehensive list of questions related to Core Java, Database, Spring Framework, and Hibernate. It covers various topics such as object creation, exception handling, OOP concepts, SQL queries, Spring Boot features, and Hibernate caching mechanisms. Each section is aimed at assessing knowledge and practical experience in these areas.

Uploaded by

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

Core Java Concepts and Programming Techniques

The document contains a comprehensive list of questions related to Core Java, Database, Spring Framework, and Hibernate. It covers various topics such as object creation, exception handling, OOP concepts, SQL queries, Spring Boot features, and Hibernate caching mechanisms. Each section is aimed at assessing knowledge and practical experience in these areas.

Uploaded by

Prasanthi Kolli
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

CORE JAVA

1. What are the ways of creating objects?


2. How do I write custom exceptions?
3. What is Throw in exceptions?
4. What is serialization?
5. Program to find the duplicate character occurrence in a string.
6. Why would you use serialization?
7. What is Inheritance? How do you implement?
8. What is polymorphism? How do you implement?
9. What is encapsulation? How do you implement?
10. What are Annotations?
11. Which version of Java is being used?
12. what is static block and static method?
13. Explain the oops concept?
14. what is overriding?
15. explain Absraction and interface?
16. what is output of exception program?
17. what is output of Overriding program if we have static and non static block?
18. In interface we have a chance to intalize the datamember or not?
19. explain sychorization concept in multithreading?
20. how to itearate the map object?
21. what is the use of wraperclasses?
22. what is use of the encapsulation?
23. what is run time exception and explain?
24. explain the internal data structure of HashMap?
25. what is differences betwween the equals and == methods?
26. Explain stringConsantpool?
27. Difference between synchronized HashMap andcon currentHashMap?
28. How does get() in HashMap works internally?
29. Dou you have experience in Java 8? If yes, why map() being used in stream API?
30. Why Java doesn’t support multiple inheritance.
31. HashSet internal working.
32. HashMap internal working.
33. What is Marker interface.
34. String memory management in JAVA.
35. Few Programming output based on string manipulations.
36. What is mutable and immutable in Java
37. What is serialization. How to implement serialization in JAVA. Why needed.
38. OOPS implementation ,how to implemeted current project??
39. Runtime poloymorphism, how to implemeted current project?
40. Difference between ArrayList and Hashmap
41. What are immutable class, how can you create custom immutable class?
42. How can you sort objects?(Comparator and comparable)
43. What are the features in java 8?
44. Types of memory in java?
45. Types of class loader in Java?
46. what is memory leakage and how to overcome ?
47. What is demon thread ?
48. Difference between Concurrency and multi-threading?
49. How to handle unchecked exception ?
50. why is destroy in thread is predicate ?
51. what are executors in java ?
52. what is marker interface ?
53. what is synchronization and volatile ?
54. What is GC in java ?
55. How can you create thread?
56. Difference between callable and runnable?
57. What is executor service?
58. We have 2 linked list, last node of the first linked list is attached to first node of the second linked
list. How would you find the intersection ?
59. When to use ArrayList and LinkedList?
60. How to sort the Employee properties like ID, name & salary by using custom sorting?
61. Program to remove object from List
62. Write a Singleton class which should work in multi-threaded model
63. How to change the properties of any class object without impacting that object.
64. How String manage the memory in java
65. If exception occurred which return statement will execute catch block return or finally block
return statement
66. What is Serialization and which properties we can not be serialized while implementing
serializable
67. What is the new changes happen in Java 8 Interface
68. " What is the access specifier of default method in java 8 Interface."
69. What are all Java 8 Features?
70. what is the latest version of Java?
71. What is Lambda Expression?
72. What is Functional Interface?
73. What is Stream and what are the stages?
74. Write a program using java 8 to filter the issue list which are less than 180 days & and group the
issues by Issue Category using Java 8?
75. What are the ways to create Strings in java and their differences?
76. Parallel stream in Java 8?
77. Why should we use Stream API?
78. How steams operation done in the pipeline internally in java 8
79. How to invoke parent class method in overriding without making any changes in existing code
80. Thread mechanism
81. HashMap internal implementation
82. HashSet and Tree Set
83. Method Overriding
84. Locking mechanism
85. what is the oops [Link]
86. abstraction vs encapsulation
87. when to use hashset and when to use treeset
88. when manipulation of data is the first priority which list implementation needs to be used
89. override static [Link] it be done?
90. Fail safe vs Fail fast
91. Runnable vs Callable
92. How to handle exceptions globally
93. How to handle checked exceptions?
94. How to sort objects?
95. What is polymorphism in java.
96. What is Functional interface and have you worked with custom functional interface.
97. Difference between ArrayList and LinkedList? When to use which one.
98. What is the internal implementation of map in java.
99. What is immutable class and how to create immutable class in java?
100. Why immutable class in needed?
101. Program to get employee whose salary is greater than 50k from employee list in java.
102. Program to get the List of employee those will have same name and salary in employee
list.
103. Difference between stream and parallel stream.
104. Explain about steam functions.
105. What is custom exception handling? How you have handled in your project?
106. What is exception propagation?
107. Which version of Java is being used?
108. Explain the important Java8 features?
109. What are the advantages of Java8 when compared with previous versions?
110. Write the code snippet for finding out the duplicate numbers in list using Java 8?
111. Implementation of saveall api.
112. overloading and override meaning.
113. What is inner class
114. What is synchronisation
115. How to prevent deadlock
116. What is functional interface
117. When do we need to implement Hashcode and Equals method in the class?
118. Internal functionality of HashMap
119. What is equals() and hashCode ()
120. When we use treeMap
121. Explain about the Java 8 features.( Lambda, stream api and Sorting)
122. Explain about Multithreading.
123. What are functional interfaces and what is the utility of it?
124. What is intermediate and terminal operations in stream API?
125. What is infinite streams?
126. Difference between Beanfactory and ApplicationContext?
127. What is a immutable class in Java and how do you create your own immutable class?
128. Internal working of HashMap? What is Hashing mechanism?
129. What is concurrenthashMap?
130. Write code for method overriding and overloading, few snippet on the same
131. Explain Static method hiding
132. Custom Exceptions and its hierarchy?
133. Java 8 features, snippet on stream() api sort and filter
134. Explain collection hierarchy and
135. Hierarchy and what and all you used
136. Snippets on collection and map
137. Different between hashmap and concurrent hash map
138. Can static methods be overriden.
139. Explain OOPs concept and how you may have implemented them in your projects.
140. Difference between abstract class and interfaces, where they are used, real world
scenarios.
141. Customized Hash Map – implement your own HashMap
142. Java 8 features used in your previous project
143. Functional interfaces available in java 8
144. Difference between List , Set and Map and usage of them in java applications
145. Explain OOPs concept through your previous project , how extensively you used in
previous project.
146. Data structure - Array and LinkedList
147. Thread life cycle
148. CompletableFuture to schedule more than 1 task parallelly
149. exception handling in java ?
150. how to stop execution of finally block in try catch ?
151. Explain singleton design pattern and how to make it threadsafe.
152.
153. What is the common problem with threading w.r.t collection. (concurrent modification
exception)
154. What is Functional interface? Did you work on creating custom functional interface?
155. What is serialization?
156. Where exactly the String Literal are taking memory?
157. How to create custom exception ?
158. Parallel stream vs sequential Stream ?
159. what is difference between authentication and authorization ?
160. "Output of the below program: helloworldworld
161. String s = ""hello"";
162. String s1 = ""world"";
163. s = [Link](s1);
164. String s2 = [Link](s1);"
165. "output: all will be printed
a. HashMap<Integer, String> map = new HashMap<>();
b. [Link](1, ""Orrange"");
166. [Link](null, ""Orrange"");
167. [Link](2, ""Grapes"");"
168. Return a list of odd numbers from a list of integers using stream API
169. If a list is modified at the runtime while doing some other operation, how does it
behave?
170. Which is the better way to create threads and why?
171.

DATABASE
1. Are you familiar with SQL?
2. How do you write a query to pick the second largest salaried employee from the employee
salary table?
3. Find 2nd highest salary in sql
4. How to handle when huge traffic occurs?
5. If a database fetch operation takes more time, how to handle it?
6. Union vs UnionAll
7. How do you write join queries to get the data from DB.
8. How Rollback works internally in Database
9. Transaction management
10. Write a MySQL query to Filter the issue list which are less than 180 days & and group the issues
by Issue Category?

SPRING FRAMEWORK
11. What do you mean by dependency injection?
12. What are the other ways of DI apart from XML?
13. What is spring context?
14. What are different scopes that object has?
15. What is singleton, prototype?
16. What module you used apart from core components?
17. What happens when request comes from Spring? How classes are called?
18. Are you familiar calling database from spring?
19. What is view resolver?
20. What are the frameworks you have worked on?
21. What are the design patterns you have worked on?
22. Explain Singleton and Factory design patterns?
23. what is the IOC and DI in spring and what it does?
24. How does spring boot works internally?
25. Transactional management in spring?
26. How do you maintain Api documentation and implementation for that?
27. write getall method in REST?
28. Explain about API and What is REST API example in real time?
29. What are the @RequestMapping and @RestController annotation in Spring Boot used for?
30. Explain how to create Spring Boot application using Maven or gradle?
31. What are the differences between @SpringBootApplication and @EnableAutoConfiguration
annotation?
32. What are different scopes that object has?
33. What is singleton, prototype?
34. What is spring?
35. Difference between spring and spring boot?
36. Advantages of spring?
37. What is dependency injection?
38. How can we create bean in spring?
39. Different types of autowire in spring?
40. What are spring actuators?
41. How to create controller in spring?
42. Which all IDE have you used for development?
43. How can you verify the input before hitting the DB in rest service?
44. How can you verify the input before hitting the controller?
45. Difference between soap and rest api?
46. what is life cycle of Spring boot
47. What is the use param
48. Difference between Application server and Web Server.
49. Why do we use @EnableWEBMVC?
50. loop holes in singleton design pattern ?
51. What are spring profiles?
52. how to handle multiple requests in REST API?
53. What is Spring Security ?
54. How to implement Spring Security ?
55. Features of Spring Security ?
56. how to implement oAuth2 ?
57. Spring Bean life cycle ?
58. HTTP response codes ?
59. how to handle requests in application server and load balancer ?
60. Differences between Spring and Springboot.
61. Difference between @Controller and @RestController
62. Diff spring and spring boot
63. Added feature in spring boot
64. How to change server in spring boot app
65. Spring - Eureka configuration, Config server, transaction management.
66. What are the annotation used in spring boot?
67. What is the annotation used for injecting a bean?
68. How to customize auto configuration feature of Spring Boot
69. How many types of configuration available in Spring Boot
70. How to Configure Spring ORM
71. How to write native queries through JPA Repository.
72. Hibernate overview and JDBC drawbacks
73. How to Configure JPA Repository in Spring Boot
74. What is dependency injection in Spring? How do you implement?
75. Apart from Singleton class, do you know any design patterns and what are they?
76. Why you chosen Spring Boot as configuration tool for previous project
77. How to prioritize the bean if you configure same bean for multiple times in spring
78. What are profiles in Spring boot, can we use multiple profiles
79. How to disable some endpoints in spring actuators
80. What is step in spring batch
81. Commit interval and rollback intervals in spring batch
82. Explain about spring batch internal working
83. Exception handling – in java and Spring context
84. spring boot features
85. What are the ways to acheive dependency injection?
86. Difference between @RequestParam & @PathVariable
87. How to start Springboot application?
88. What is @SprinBootApplictaion, @Configuration,@ComponentScan and
@EnableAutoConfiguration?
89. Can we use standalone server instead of Emebedded tomcat in springBoot application? Have
you tried the same?
90. How to connect database in springboot application?
91. what is spring profiles?
92. Have you used spring boot actuator in your project?
93. How do you connect database in Spring boot project?
94. How to configure other servers in spring boot?
95. How in spring we can achieve serialization and when we use it.
96. How to handle exception globally in spring boot.
97. What is IOC.
98. How to read one property file which is not the default [Link] in spring boot.
99. How to read values from [Link] file and how to use it springboot application?
100. Difference between @Component & @Repository
How to authenticate the client requests by using spring framework
101. Write code for the CRUD operations in Controller layer, Service layer, Repository layer
and Entity
102. How to make the DB transaction for the Custom SQL query from the spring framework at
JPA level repository
103. How the Transactional Management works in case if any one of the table query gets
failed in SQL level which are mapped with one to many relationship
104. How the validation works when we send a request from client
105. How globally exceptions can handle in spring framework?
106. How the @GetMapping, @PostMapping, @PutMapping, @DeleteMapping works
107. what is the purpose of @Bean annotation and how it works?
108. Which IDE you have used for development?
109. What is Dependency Injection?
110. Explain spring bean scopes?
111. What is the spring boot advantage over spring.
112. What the spring bean scope. What is the default bean scope in spring.
113. What are spring profiles? How we can trigger the particular environment profile?
114. How to configure two different databases in one project?

HIBERNATE
115. Have you worked on Hibernate?
116. Explain 1st and 2nd level caches in hibernate
117. How to enable lazy loading in hibernate
118. How to implement caching in Hibernate to prevent duplicate data fetch from database.
119. What is lazy loading?
120. Explain the hibernate cache.
121. SQL query to get the second highest salary of employee.

RESTFUL SERVICES
1. What is RESTful webservice? What is the need of it?
2. What is meant by CORS in RESTful webservice?
3. What is the difference between REST and SOAP webservices?
4. Why is REST a stateless webservice?
5. Why and how did you use REST in your project?

To initiate the transfer-post,

to initiate the extract-post,

to know the transfer status-get,

to know the sftp connection status

6. Purpose of @Transactional annotation


7. Difference between stateless and Stateful.
8. What is HTTP? What is the difference between HTTP and HTTPS?
9. What is HTTP client?
10. What is Jackson to object converter?
11. Difference between encoding and encryption?
12. What is @controller vs @RestController ?
13. How do you Validate Rest API Calls for Data base?
PROJECT
14. How to cut the branching, while sending different environments(like prod, int)?
15. Tell me about your projects and skill set used.
16. explain work flow stages in your previous company?
17. How you are handling Authentication and Authorization for your application?
18. CI/CD deployment process.
19. What is The Project Architecture in Your Current Project?
20. Explain the architecture of your last project in detail?
21. What is the type of authentication used in your application?
22. Do you have an idea on unit testing and integration testing?
23. Do you have an idea on version control tools?
24. Question on junit testing like how to
25. How to exclude embedded tomcat in a springboot application.
26. How do you deploy your application ( CI/CD)
27. What roles performed, management, leadership, individual contributor.
28. How are new features added, how did you resolve issues in projects.
29. Logging – In the application level, if I set the logging level to ERROR, will the INFO logs stop
appearing?
30. Explain Sigle Sign on.
31. How to resolve conflicts while merging the code.
32. Configuring JPA with Spring boot
33. About Jira tool
34. What is Jenkins, how did you deploy your code in your last project
35. what type of testing have you done as a developer.
36. Example for Object Pool design pattern
37. How to write the Test Cases?
38. How you have handled the post deployment production issues in your project?
39. How to design and develop an application? What are the parameters you will consider and what
is your approach?
40. Scenario: What will you do when performance team reports performance issue in the
application you deployed?
41. Scenario: What will you do if the production issue reported due to the recent deployment you
did?
42. Scenario: What are the questions you will ask to business/client when they provide new
requirement?

ANGULAR
43. What is the difference between let, var and const?
44. What is ES6 and their features?
45. What is ES6 and their features?

You might also like