AYAnshuman Yuvrajinrefstash.com路Oct 2, 2023 路 8 min readLambda ExpressionsLambda Expression is an anonymous function. i.e: a function that does not have any name. Writing Lambda Expression: Syntax: ( Arguments list ) -> { Body of Lambda Expression } Argument list : There can be zero or more arguments. Arrow-token : ...00
AYAnshuman Yuvrajinrefstash.com路Aug 31, 2023 路 13 min readDemystifying REST API: A Comprehensive Guide馃挕 Understanding Architectural Styles: Before diving into REST, let's understand what architectural styles are and why they matter in software development. An architectural style is a set of principles and constraints that guide the design and organi...00
AYAnshuman Yuvrajinrefstash.com路Aug 23, 2023 路 5 min read@RequestMapping in Spring@RequestMapping annotation is used to map a URL pattern to a controller method. It tells Spring how to route an incoming HTTP requests to the appropriate handler method in your controller. This annotation is versatile and can be applied at class-leve...00
AYAnshuman Yuvrajinrefstash.com路Aug 15, 2023 路 6 min readMethod Reference and Constructor ReferenceMethod reference and Constructor reference provide a concise way to refer to existing methods or constructors as lambda expressions. Method Reference: Refer method of a class Using the Method Reference the Single Abstract Method of a Functional inter...00
AYAnshuman Yuvrajinrefstash.com路Aug 14, 2023 路 4 min readOptional Class in Java 8Optional is a generic class defined in the java.util package, that got introduced in Java 8. It facilitates the handling of potentially absent values in a more concise and expressive manner.It provides a container-like structure to wrap objects, indi...00