|
2 | 2 | [](https://www.codacy.com/app/inbravo/java-src?utm_source=github.com&utm_medium=referral&utm_content=inbravo/java-src&utm_campaign=Badge_Grade)
|
3 | 3 | ### Some useful Java examples
|
4 | 4 |
|
5 |
| -#### Language features |
| 5 | +#### JDK 5/6 Language features |
6 | 6 | - [A static nested class is 'Static Nested Class'. A non static nested class becomes 'Inner Class'][NestedClassTest.md]
|
7 | 7 | - [How shift operation based calculation is faster than mathematical equivalent][NativeCalc.md]
|
8 | 8 | - [Simulator for 'OutOfMemoryError'][OutOfMemoryErrorSim.md]
|
9 | 9 | - [Singleton using 'enum'][EnumSingletonTest.md]
|
10 | 10 | - [How Remote Method Invocation(RMI) works][PowerServiceImpl.md]
|
11 | 11 |
|
| 12 | +#### JDK 7/8 language features |
| 13 | +- [Usage of 'MethodHandles'][MethodHandleTest.md] |
| 14 | +- [Performance comparison between MethodHandle, Reflection, LambdaMetafactory and Direct method call][TestMethodPerf.md] |
| 15 | +- [Diamond operator(<>)][DiamondOperatorTest.md] |
| 16 | +- [Interface with 'default' method][InterfaceWithMainTest.md] |
| 17 | +- [Interface with 'static' method][InterfaceWithStaticMethod.md] |
| 18 | +- [Class with 'default' method][ClassWithDefaultMethodUsage.md] |
| 19 | +- [Functional interfaces][FunctionalInterfaceTest.md] |
| 20 | +- [Runnable is a functional interface now (java.lang.FunctionalInterface)][ThreadSleepTest.md] |
| 21 | +- [Predicate as functional interfaces][PredicateTest.md] |
| 22 | +- [Using 'Collections.sort' on Lambdas][ComparatorTest.md] |
| 23 | +- [Using 'List.forEach' on Lambdas][ForEachTest.md] |
| 24 | +- [List Streaming example][ListStreamTest.md] |
| 25 | + |
12 | 26 | #### JDK 9 language features
|
13 | 27 | - [How 'jshell' (Read-Eval-Print Loop : JEP-222) works][JShellTest.md]
|
14 | 28 | - [How 'VarHandle' class (JEP-193) works][VarHandleTest.md]
|
|
26 | 40 | - [Unsafe objects using 'sun.misc.Unsafe' (Heap bypassing)][UnsafeObject.md]
|
27 | 41 | - [Example of System.identityHashCode][IdentityHashCode.md]
|
28 | 42 |
|
29 |
| -#### JDK 7/8 features |
30 |
| -- [Usage of 'MethodHandles'][MethodHandleTest.md] |
31 |
| -- [Performance comparison between MethodHandle, Reflection, LambdaMetafactory and Direct method call][TestMethodPerf.md] |
32 |
| -- [Diamond operator(<>)][DiamondOperatorTest.md] |
33 |
| -- [Interface with 'default' method][InterfaceWithMainTest.md] |
34 |
| -- [Interface with 'static' method][InterfaceWithStaticMethod.md] |
35 |
| -- [Class with 'default' method][ClassWithDefaultMethodUsage.md] |
36 |
| -- [Functional interfaces][FunctionalInterfaceTest.md] |
37 |
| -- [Runnable is a functional interface now (java.lang.FunctionalInterface)][ThreadSleepTest.md] |
38 |
| -- [Predicate as functional interfaces][PredicateTest.md] |
39 |
| -- [Using 'Collections.sort' on Lambdas][ComparatorTest.md] |
40 |
| -- [Using 'List.forEach' on Lambdas][ForEachTest.md] |
41 |
| -- [List Streaming example][ListStreamTest.md] |
42 |
| - |
43 | 43 | #### Util classes
|
44 | 44 | - [Usage of 'CopyOnWriteArrayList'][CowalTest.md]
|
45 | 45 | - [Performance testing of 'ConcurrantMap'][ConcurrantMapTest.md]
|
|
0 commit comments