Skip to content

Commit dd899f0

Browse files
links to home page
1 parent 780c970 commit dd899f0

16 files changed

+34
-3
lines changed

collections.md

+2
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,5 @@ Main differences between a Set and a Map in Java are:
8282
+ Collections.synchronizedMap(Map) is the second option if you need to ensure data consistency, and each thread needs to have an up-to-date view of the map. Use the first if performance is critical, and each thread only inserts data to the map, with reads happening less frequently.
8383
###### Relative links:
8484
+ https://stackoverflow.com/questions/510632/whats-the-difference-between-concurrenthashmap-and-collections-synchronizedmap
85+
86+
[Home Page](README.md)

concurrency.md

+2
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,5 @@ Synchronized blocks in Java are marked with the synchronized keyword. A synchron
7979
When synchronizing a non static method, the monitor belongs to the instance.
8080
###### Relative links:
8181
+ https://stackoverflow.com/questions/6367885/difference-between-synchronizing-a-static-method-and-a-non-static-method
82+
83+
[Home Page](README.md)

core.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ Stop-the-world will occur no matter which GC algorithm you choose. Stop-the-worl
7676
+ https://stackoverflow.com/questions/16695874/why-does-the-jvm-full-gc-need-to-stop-the-world
7777

7878
## What is the difference between int, Integer and AtomicInteger?
79-
+ int is a primitive type. Variables of type int store the actual binary value for the integer you want to represent. int.parseInt("1") doesn't make sense because int is not a class and therefore doesn't have any methods.
80-
+ Integer is a class, no different from any other in the Java language. Variables of type Integer store references to Integer objects, just as with any other reference (object) type. Integer.parseInt("1") is a call to the static method parseInt from class Integer (note that this method actually returns an int and not an Integer). To be more specific, Integer is a class with a single field of type int. This class is used where you need an int to be treated like any other object, such as in generic types or situations where you need nullability.
81-
+ AtomicInteger is used in multithreaded environments when you need to make sure that only one thread can update an int variable. The advantage is that no external synchronization is requried since the operations which modify it's value are executed in a thread-safe way.
79+
+ ***int*** is a primitive type. Variables of type int store the actual binary value for the integer you want to represent. int.parseInt("1") doesn't make sense because int is not a class and therefore doesn't have any methods.
80+
+ ***Integer*** is a class, no different from any other in the Java language. Variables of type Integer store references to Integer objects, just as with any other reference (object) type. Integer.parseInt("1") is a call to the static method parseInt from class Integer (note that this method actually returns an int and not an Integer). To be more specific, Integer is a class with a single field of type int. This class is used where you need an int to be treated like any other object, such as in generic types or situations where you need nullability.
81+
+ ***AtomicInteger*** is used in multithreaded environments when you need to make sure that only one thread can update an int variable. The advantage is that no external synchronization is requried since the operations which modify it's value are executed in a thread-safe way.
8282
###### Relative links:
8383
+ https://stackoverflow.com/questions/8660691/what-is-the-difference-between-integer-and-int-in-java
8484
+ https://stackoverflow.com/questions/38846976/what-is-the-difference-between-atomic-integer-and-normal-immutable-integer-class
@@ -159,3 +159,5 @@ Apache JMeter is an open source, Java-based, load testing tool that can be used
159159
Possible options from the link.
160160
###### Relative links:
161161
+ https://www.baeldung.com/java-heap-dump-capture
162+
163+
[Home Page](README.md)

git.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ git-reset - Reset current HEAD to the specified state
2121
- hard: uncommit + unstage + delete changes, nothing left.
2222
###### Relative links:
2323
- https://stackoverflow.com/questions/3528245/whats-the-difference-between-git-reset-mixed-soft-and-hard
24+
25+
[Home Page](README.md)

hibernate.md

+2
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ Allowing to explicitly flush the Session gives finer control that may be require
3333
###### Relative links:
3434
+ https://dzone.com/articles/all-about-hibernate-second
3535
+ https://habr.com/ru/post/135176/
36+
37+
[Home Page](README.md)

javascript.md

+2
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,5 @@ if (typeof(element) != 'undefined' && element != null)
5656
it is not possible to overload functions in Javascript
5757
###### Relative links:
5858
- https://stackoverflow.com/questions/456177/function-overloading-in-javascript-best-practices
59+
60+
[Home Page](README.md)

linux.md

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ ps -A
88
```
99
###### Relative links:
1010
- https://www.howtogeek.com/107217/how-to-manage-processes-from-the-linux-terminal-10-commands-you-need-to-know/
11+
12+
[Home Page](README.md)

maven.md

+2
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ yes
3030
###### Relative links:
3131
- https://stackoverflow.com/questions/9299083/what-is-inherited-in-maven-projects
3232
- http://maven.apache.org/pom.html#Inheritance
33+
34+
[Home Page](README.md)

microservices.md

+2
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,5 @@ https://docs.microsoft.com/en-us/dotnet/architecture/microservices/architect-mic
8888
Rather than ensuring that the system is in a consistent state all the time, instead we can accept that the system will get it at some point in the future. This approach is especially useful for long-living business operations.
8989
###### Relative links:
9090
+ https://softwareengineering.stackexchange.com/questions/354911/microservices-handling-eventual-consistency
91+
92+
[Home Page](README.md)

patterns.md

+2
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,5 @@ Abstract Factory, Factory method
6666
###### Relative links:
6767
+ https://www.geeksforgeeks.org/design-patterns-set-2-factory-method/
6868
+ https://www.geeksforgeeks.org/abstract-factory-pattern/
69+
70+
[Home Page](README.md)

rest.md

+2
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,5 @@ As a request-response protocol, HTTP gives users a way to interact with web reso
127127
###### Relative links:
128128
+ https://www.extrahop.com/resources/protocols/http/
129129
+ https://www.quora.com/How-does-HTTP-work
130+
131+
[Home Page](README.md)

servlet.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ There are three life cycle methods of a Servlet:
2121
Servlet mapping specifies the web container of which java servlet should be invoked for a url given by client. It maps url patterns to servlets. When there is a request from a client, servlet container decides to which application it should forward to. Then context path of url is matched for mapping servlets.
2222
###### Relative links:
2323
+ https://javapapers.com/servlet/what-is-servlet-mapping/
24+
25+
[Home Page](README.md)

spring.md

+2
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,5 @@ After the bean instances are created they are run through a series of BeanPostPr
155155
The problem here is, that Spring's AOP proxies don't extend but rather wrap your service instance to intercept calls. This has the effect, that any call to "this" from within your service instance is directly invoked on that instance and cannot be intercepted by the wrapping proxy (the proxy is not even aware of any such call).
156156
###### Relative links:
157157
+ https://stackoverflow.com/questions/3423972/spring-transaction-method-call-by-the-method-within-the-same-class-does-not-wo
158+
159+
[Home Page](README.md)

sql.md

+2
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ Although indexes are intended to enhance a database's performance, there are tim
2020
+ Columns that are frequently manipulated should not be indexed.
2121
###### Relative links:
2222
+ https://www.tutorialspoint.com/sql/sql-indexes.htm
23+
24+
[Home Page](README.md)

test.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ JUnit and TestNG are the main unit test frameworks.
2424
###### Relative links:
2525
- https://stackoverflow.com/questions/4055957/what-are-the-unit-testing-frameworks-available-in-java
2626

27+
[Home Page](README.md)

transaction.md

+2
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ Distributed transactions span multiple physical systems, whereas standard transa
5757
+ ***Pessimistic Locking*** is when you lock the record for your exclusive use until you have finished with it. It has much better integrity than optimistic locking but requires you to be careful with your application design to avoid Deadlocks. To use pessimistic locking you need either a direct connection to the database (as would typically be the case in a two tier client server application) or an externally available transaction ID that can be used independently of the connection.
5858
###### Relative links:
5959
+ https://stackoverflow.com/questions/129329/optimistic-vs-pessimistic-locking
60+
61+
[Home Page](README.md)

0 commit comments

Comments
 (0)