-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gaurov Ojha
committed
Oct 18, 2016
0 parents
commit 0a59191
Showing
46 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
The single most important change in Java 8 enables | ||
|
||
Advantages : | ||
Faster, clearer coding and opens the door to functional programming. | ||
Functional programming has risen in importance because it is well suited for concurrent and event-driven (or "reactive") programming. | ||
Collection libraries can be given powerful APIs if the language has a convenient syntax for functional expressions | ||
|
||
lamda exp : anonymous function impl | ||
functional Interface : only one abstract method | ||
|
||
Can functional interface be extended ? YES | ||
|
||
Lamda expression chaining | ||
|
||
inteface vs abstract class (abstract class has a constructor and its use?) | ||
|
||
What is the point of public default method in functional interface | ||
|
||
|
||
Defender methods in interfaces : | ||
|
||
Before java 1.8 if you need to add new functionality into interfaces one needs to provide its implementation in all of the concrete class which are implementing that interface. | ||
and this limitation makes it almost impossible to extend/improve the existing interfaces and APIs | ||
|
||
|
||
The same challenge was faced while enhancing the Collections API in Java 8 to support lambda expressions in the API. | ||
To overcome this limitation a new concept is introduced in Java 8 called default methods which is also referred to as Defender Methods or Virtual extension methods. | ||
|
||
|
||
|
||
|
||
REST : Representational State Transfer ????? | ||
|
||
Rest + Spring | ||
|
||
|
||
Rest vs servlet vs srping mvc | ||
|
||
restful webservice to return employee data in different formats | ||
Add caching + authentication | ||
pass object in request and get response as object |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
KBG | ||
sape-113609 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
18-10-2016 | ||
================================================= | ||
TDD | ||
Refactoring | ||
|
||
Junit Testing : | ||
make method private | ||
add have some return type | ||
junit v3 vs v4 (annotations came in v4) | ||
Annotations : How it workds --> Reflection | ||
|
||
|
||
Mocking framework : | ||
|
||
Mock return values | ||
|
||
Mockito framework : only behaviour can be mocked | ||
JMock | ||
power mock : private and static and final methods can be mocked | ||
|
||
|
||
Final : Making things unchangable | ||
|
||
Final | ||
|
||
|
||
static : | ||
|
||
class | ||
variable | ||
method | ||
static Import | ||
Inner classes | ||
|
||
abstract | ||
|
||
java call by value or call by reference | ||
|
||
Super | ||
this | ||
calling constrcutor using this | ||
|
||
loading -> linking -> initialization | ||
|
||
what is the value of hashcode() and when its been initialized | ||
|
||
jvm architecture | ||
|
||
classloader | ||
inside jvm |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
workshop self |
Binary file not shown.