Java8 Part2 Streams

Java8 StreamsThe Java conventional style to deal with collection is external iteration.We deal with collection by Internal iteration External iteration The term external iteration implies you need to explicitly take care of iteration of elements in collection then validate each element and add it to the other list. Where as internal iteration implies.Java8 itself gives capability to iterate each and…

Read More Read More

java8 lambda

Lambda Expressions   What is lambda Expressions?                   The lambda expression is just like the function it consist of List of parameters Method Body return Type Lambda Expression termed as anonymous because it does not have any name. Lambda Expression passed as arguments to the methods.     Anatomy of Lambda expression 🙂…

Read More Read More

Persistence Life Cycle

There are in all four stages of Object in hibernate 1.Transient 2.Persistent 3.Removed 4.Detached 1.Transient Objects When an object is instantiated it’s not persistent immediately let’s suppose we are creating simple object if I am having in Employee class. We will create instance in this way, Employee emp= new employee(); When we create object it is in  transient state. Once…

Read More Read More