Java Lambda Expressions: Consumer, Supplier and Function

Lambdas are used to create function objects. With them, we can specify methods inside other methods—and even pass methods as arguments to other methods. A lambda has a shape, one determined by its parameters and return values (if any) and their types. Classes like Function, Supplier, Consumer, accept lambdas with specific shapes. Example expression. This…

How Java Debug works

You can just attach your IDE to a running application (which has been runned for debug as we’ll see later), or you can even debug it from command line. And the application you debug can even be be in a different machine. The magic lies in where the debug information actually resides. Apparently people normally…