forked from matrix1992/java-level-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemory_function_lambda_stream.txt
More file actions
43 lines (36 loc) · 4.19 KB
/
memory_function_lambda_stream.txt
File metadata and controls
43 lines (36 loc) · 4.19 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
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Memory Management
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-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, explain TLA. 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
-Basic overview of different algorithms for GC. Ref: http://www.cubrid.org/blog/understanding-java-garbage-collection
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Functional Programming
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-Basic idea of what is functional programming.
-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
-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
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Lambdas
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-What is lambda expression? What are the advantages of using lambdas? Explain with basic examples. Ref: https://dzone.com/articles/java-lambda-expressions-basics
-Binding of function interfaces with lambdas. Ref: https://dzone.com/articles/java-lambda-expressions-basics
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Streams
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-How to create stream? Ref: http://www.journaldev.com/2774/java-8-stream
-sequential and parallel stream. Ref: http://www.journaldev.com/2774/java-8-stream
-Stream advantages. Ref: http://www.journaldev.com/2774/java-8-stream
-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/