Java 9 features

Java 9 has introduced a couple of nice features. Let's try to use them? :)
1) Factory Methods for Immutable List, Set, Map and Map.Entry
You can easily create an immutable List, Set or Map by using a .of() method like this:

List<String> newList = List.of("a", "b", "c");
Set<String> newSet = Set.of("a", "b", "c");
Map<Integer, String> newMap = Map.of(1, "first", 2, "second", 3, "third");

Very convenient, I must say. On previous versions of Java you had to make a loop or use some other library to achieve the same result.

Oracle's OCAJP (1Z0-803) exam passed!

Last week I've passed Oracle Certified Associate, Java SE 7 Programmer(1Z0-803) exam with not a very shining score of 85%. So, I've decided to give some tips & tricks for readers of my blog on how to prepare and pass the exam.

First of all - my impressions about the exam. Exam is tough. The exam asks simple questions (lets say - basics) about Java, but you must know them. For example: Is there a difference between: