This 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 Morejava interview questions,
Read MoreIn Java, access modifiers are keywords used to define the accessibility or visibility of classes, variables, methods, and constructors. There are four types of access modifiers in Java: 1. public: The public access modifier in Java is used to declare that a class, variable, method, or constructor is accessible from anywhere in the program, both […]
Read MoreImage referred from: http://www.sitesbay.com/java/images/basic-java/Static-and%20non-Static-Method-rules.png static: In Java, the ‘static’ keyword is used to declare members (variables and methods) that belong to the class itself, rather than to individual instances of the class. When a member is declared as ‘static’, it means that it is shared among all instances of the class. This allows you to […]
Read MoreBefore we discuss Java data types, programming languages categorized into two types there are, Image referred from: https://nosleepjavascript.com/javascript-is-best/ Statically typed programming languages Statically typed languages require variables must first be declared before they can be used that are checked at compile-time. Examples of statically typed languages include Java, C, C++, and Swift. In these languages, […]
Read More