-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmemory_function_lambda_stream.txt
More file actions
63 lines (49 loc) · 4.49 KB
/
memory_function_lambda_stream.txt
File metadata and controls
63 lines (49 loc) · 4.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Memory Management
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
**Pointers**
-Explaination of different sections: Stack, Heap- jvm heap, perm/metaspace. Ref: http://www.journaldev.com/2856/java-jvm-memory-model-memory-management-in-java
-Altering memory for different sections using JVM args. Ref: http://www.journaldev.com/2856/java-jvm-memory-model-memory-management-in-java
-Object creation steps - reference resolution. Ref: https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/garbage_collect.html
-What is garbage collection? Ref: http://www.cubrid.org/blog/understanding-java-garbage-collection
-How garbage collection happens - youngGen, servivor space, oldGen. Ref: http://www.cubrid.org/blog/understanding-java-garbage-collection
**Post Read**
http://www.journaldev.com/2856/java-jvm-memory-model-memory-management-in-java
https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/garbage_collect.html
http://www.cubrid.org/blog/understanding-java-garbage-collection
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Functional Programming & Lambdas
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
**Pointers**
-Functions as an object in Java 8. Discuss advantages of the same. Ref: https://dzone.com/articles/functional-programming-in-java-8-part-1-functions-as-objects,
https://dzone.com/articles/functional-programming-java-8
-What is lambda expression? What are the advantages of using lambdas? Explain with basic examples. Ref: https://dzone.com/articles/java-lambda-expressions-basics
-Functional interfaces in java - Function and BiFunction, Predicate and BiPredicate, Consumer and BiConsumer, Supplier. Ref: https://dzone.com/articles/java-lambda-expressions-basics
http://www.journaldev.com/2774/java-8-stream
-Binding of function interfaces with lambdas. Ref: https://dzone.com/articles/java-lambda-expressions-basics
-Method References Ref: https://docs.oracle.com/javase/tutorial/java/javaOO/methodreferences.html
**Post Read**
https://dzone.com/articles/functional-programming-in-java-8-part-1-functions-as-objects
https://dzone.com/articles/functional-programming-java-8
https://dzone.com/articles/java-lambda-expressions-basics
http://www.journaldev.com/2774/java-8-stream
https://docs.oracle.com/javase/tutorial/java/javaOO/methodreferences.html
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Streams
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
**Pointers**
-How to create stream? Ref: http://www.journaldev.com/2774/java-8-stream
-Sequential streams. Ref: http://www.journaldev.com/2774/java-8-stream
-Stream advantages. Ref: http://www.journaldev.com/2774/java-8-stream
-Lazy Evaluation <Ref:Due>
-Use of predicates in streams. Ref: http://www.journaldev.com/2774/java-8-stream
-Stream filter, stream map, stream sorted, stream forEach. Ref: http://www.journaldev.com/2774/java-8-stream
-Order of executions of stream chains and how does the order matter? Ref: http://www.journaldev.com/2774/java-8-stream
-Converting stream to collection using Collectors class. Ref: http://winterbe.com/posts/2014/07/31/java8-stream-tutorial-examples/
-Collectors joining, toMap, summarizingInt. Ref: http://winterbe.com/posts/2014/07/31/java8-stream-tutorial-examples/
-FlatMap. Ref: http://winterbe.com/posts/2014/07/31/java8-stream-tutorial-examples/
-Reduce. Ref: http://winterbe.com/posts/2014/07/31/java8-stream-tutorial-examples/
-Parallel streams and its advantages/disadvantages. Ref: http://winterbe.com/posts/2014/07/31/java8-stream-tutorial-examples/
**Post Read**
http://www.journaldev.com/2774/java-8-stream
http://winterbe.com/posts/2014/07/31/java8-stream-tutorial-examples/