final keyword is used in different contexts. First of all, final is a non-access modifier applicable only to a variable, a method, or a class. The following are different contexts where final is used. Final Variable: When applied to a variable, the final keyword indicates that the variable’s value cannot be changed after it has been initialized. This is typically […]
Read MoreThis blog explains about Stream part 3 in java is given below : map(Function) map(List of Objects -> List of Objects) Example 2: It should be rewritten as below: limit() skip() total reduce() //Converting ArrayList to Array //Get max from an ArrayList Parallel Stream //ParallelStream //Sorting Based on Key: Alphabetical Order //anyMatch() anyMatch() //allMatch() //noneMatch()
Read MoreThis blog Explain about Git Git is a distributed version control system used for tracking changes in source code during software development. It is widely used by developers to collaborate on projects, manage codebases, and track the history of changes in a code repository. Here are some key concepts and commands related to Git How […]
Read MoreThis blog explains about Stream API in java is given below : Print Array values in Sorted Order: Note: Intermediate Operations are Lazy OperationsTerminal Operations are Eager Operations Find average of elements in an Array: Finding max of given Array: Finding minimum of given Array: Finding First value of given Array: Finding any value of […]
Read MoreThis blog explains about Method reference double colon operator in java is given below : Method Reference: :: Double Colon Operator: Short cut for Lambda Expressions:Code Readability:Compact. Arguments should match in interface method and our class method. We can use Method Reference for static and non-static methods.
Read MoreThis Blog explains about Java 8 – New Features – Functions, forEach, Consumer Interface. Demo_Impl.java Demo_Interface.Java Demo.java Consumer_Implementation.java Contract.Java Contract_Implementation
Read MoreThis Blog explains about Java 8 – New Features – default, static Methods in Interface, Predicates. Ticket booking. java Employee.java Contract.java Contract2.java
Read MoreThis Blog explains about Java 8 – New Features – Lambda Expressions, Functional Interfaces. Lambda Expressions: WHY: Functional Programming WHAT: Anonymous Functions: Closures Function – Method: HOW: Eg: 1 1) Remove Method Name 2) Remove return datatype 3) Remove Access Modifiers if any. 4) Add -> in between () and {} Eg. 2: Eg. 3: […]
Read MoreHTML documents are composed of a set of elements, each represented by a tag. These tags are used to define the structure and layout of a web page. Here are some common HTML tags. <html>: This tag represents the root of an HTML document and contains all other HTML elements. <head>: The head section of […]
Read MoreHTML stands for Hyper Text Markup Language. HTML is the standard markup language for creating Web pages. It is a fundamental technology for building websites and web applications. HTML is a markup language, not a programming language. HTML documents consist of a set of elements or tags that structure the content and describe how it should […]
Read More