Lambdas and StreamsIn Java8, some of the things that are added: lambdas, functional interface, method references -> create function objects streams -> processing sequence of data elements Item 42: Prefer lambdas to anonymous class function types: interface/abstract ...Jan 16, 2021·5 min read
Creating and Destroying ObjectsPart of a Series Item 1: Consider static factory methods instead of constructors Advantages: Have names (multiple constructors with variable args) Not required to create a new object each time they’re invoked (caching) Can return an object of any...Jan 2, 2021·6 min read
Effective Java Points: The PrologueThis is the collection which I am writing based on the book Effective Java by Joshua Bloch . The book contains a lot of recommended practices (90 to be precise) collected in bundles based on chapters/concepts. These are a lot to read and remember at...Dec 26, 2020·2 min read