Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03a510b

Browse files
hibernate/rest/core questions
1 parent 6625860 commit 03a510b

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ At the beginning, it was the repository with questions from Java interviews. Cur
5858
- [One exception is thrown by catch block and another one is thrown from finally block, which exception will be thrown by method?](core.md#one-exception-is-thrown-by-catch-block-and-another-one-is-thrown-from-finally-block-which-exception-will-be-thrown-by-method)
5959
- [Is it possible to serialize lambda expression?](core.md#is-it-possible-to-serialize-lambda-expression)
6060
- [Why can Java Collections not directly store Primitives types?](core.md#why-can-java-collections-not-directly-store-primitives-types)
61+
- [How is recursion implemented in Java?](core.md#how-is-recursion-implemented-in-java)
62+
- [Is it needed to document unchecked exceptions?](core.md#is-it-needed-to-document-unchecked-exceptions)
63+
- [Java Date classes?](core.md#java-date-classes)
64+
- [Why Do Local Variables Used in Lambdas Have to Be Final or Effectively Final?](core.md#why-do-local-variables-used-in-lambdas-have-to-be-final-or-effectively-final)
6165

6266
## Collections
6367
- [What is the complexity for get in Hashmap?](collections.md#what-is-the-complexity-for-get-in-hashmap)
@@ -147,6 +151,7 @@ At the beginning, it was the repository with questions from Java interviews. Cur
147151
- [Hibernate best practice?](hibernate.md#hibernate-best-practice)
148152
- [How to Define and Use a @NamedEntityGraph?](hibernate.md#how-to-define-and-use-a-namedentitygraph)
149153
- [Possible issues with defining equals/hashcode on JPA entities?](hibernate.md#possible-issues-with-defining-equalshashcode-on-jpa-entities)
154+
- [How lazy loading works in hibernate?](hibernate.md#how-lazy-loading-works-in-hibernate)
150155

151156
## Git
152157
- [What is the difference between merge and rebase?](git.md#what-is-the-difference-between-merge-and-rebase)
@@ -240,6 +245,8 @@ At the beginning, it was the repository with questions from Java interviews. Cur
240245
- [Best guidelines?](rest.md#best-guidelines)
241246
- [Best practice for PATCH?](rest.md#best-practice-for-patch)
242247
- [Do sessions violate REST?](rest.md#do-sessions-violate-rest)
248+
- [When to use GraphQL?](rest.md#when-to-use-graphql)
249+
- [What is ElasticSearch?](rest.md#what-is-elasticsearch)
243250

244251
## SQL
245252
- [What is having in sql?](sql.md#what-is-having-in-sql)

core.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
- [One exception is thrown by catch block and another one is thrown from finally block, which exception will be thrown by method?](#one-exception-is-thrown-by-catch-block-and-another-one-is-thrown-from-finally-block-which-exception-will-be-thrown-by-method)
3434
- [Is it possible to serialize lambda expression?](#is-it-possible-to-serialize-lambda-expression)
3535
- [Why can Java Collections not directly store Primitives types?](#why-can-java-collections-not-directly-store-primitives-types)
36+
- [How is recursion implemented in Java?](#how-is-recursion-implemented-in-java)
37+
- [Is it needed to document unchecked exceptions?](#is-it-needed-to-document-unchecked-exceptions)
38+
- [Java Date classes?](#java-date-classes)
39+
- [Why Do Local Variables Used in Lambdas Have to Be Final or Effectively Final?](#why-do-local-variables-used-in-lambdas-have-to-be-final-or-effectively-final)
3640

3741
## What's new in Java 8?
3842
+ Lambda expressions, Method Reference , Optional, Streams added.
@@ -251,4 +255,20 @@ It's a combination of two facts:
251255
###### Relative links:
252256
- https://stackoverflow.com/questions/2504959/why-can-java-collections-not-directly-store-primitives-types
253257

258+
## How is recursion implemented in Java?
259+
###### Relative links:
260+
- https://freecontent.manning.com/stack-safe-recursion-in-java/
261+
262+
## Is it needed to document unchecked exceptions?
263+
###### Relative links:
264+
- https://books.google.by/books?id=ka2VUBqHiWkC&pg=PA252&lpg=PA252&dq=java+is+it+needed+document+unchecked+exceptions&source=bl&ots=y_KhOeo_M3&sig=ACfU3U0TpATCoEC62Irm3SaPj6tMWDnZLQ&hl=en&sa=X&ved=2ahUKEwiS7_vG4OvnAhXF8qQKHeniBtIQ6AEwD3oECAkQAQ#v=onepage&q&f=false
265+
266+
## Java Date classes?
267+
###### Relative links:
268+
- https://www.baeldung.com/java-8-date-time-intro
269+
270+
## Why Do Local Variables Used in Lambdas Have to Be Final or Effectively Final?
271+
###### Relative links:
272+
- https://www.baeldung.com/java-lambda-effectively-final-local-variables
273+
254274
[Home Page](README.md)

hibernate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- [Hibernate best practice?](#hibernate-best-practice)
99
- [How to Define and Use a @NamedEntityGraph?](#how-to-define-and-use-a-namedentitygraph)
1010
- [Possible issues with defining equals/hashcode on JPA entities?](#possible-issues-with-defining-equalshashcode-on-jpa-entities)
11+
- [How lazy loading works in hibernate?](#how-lazy-loading-works-in-hibernate)
1112

1213
## What is detached entity?
1314
- A `new` instance of a persistent class which is not associated with a `Session`, has no representation in the database and no identifier value is considered ***transient*** by Hibernate.
@@ -67,4 +68,8 @@ Allowing to explicitly flush the Session gives finer control that may be require
6768
###### Relative links:
6869
- https://thoughts-on-java.org/create-generate-table-model/
6970

71+
## How lazy loading works in hibernate?
72+
###### Relative links:
73+
- https://howtodoinjava.com/hibernate/lazy-loading-in-hibernate/
74+
7075
[Home Page](README.md)

rest.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
- [Best guidelines?](#best-guidelines)
2222
- [Best practice for PATCH?](#best-practice-for-patch)
2323
- [Do sessions violate REST?](#do-sessions-violate-rest)
24+
- [When to use GraphQL?](#when-to-use-graphql)
25+
- [What is ElasticSearch?](#what-is-elasticsearch)
2426

2527
## What is rest architecture? What are the requirements?
2628
- resources being identified by a persistent identifier: URIs are the ubiquitous choice of identifier these days
@@ -186,4 +188,12 @@ Strings.
186188
###### Relative links:
187189
- https://stackoverflow.com/questions/6068113/do-sessions-really-violate-restfulness
188190

191+
## When to use GraphQL?
192+
###### Relative links:
193+
- https://dzone.com/articles/why-and-when-to-use-graphql-1
194+
195+
## What is ElasticSearch?
196+
###### Relative links:
197+
- https://dzone.com/articles/what-is-elasticsearch-and-how-it-can-be-useful
198+
189199
[Home Page](README.md)

0 commit comments

Comments
 (0)