Lambda Expression vs Anonymous Inner class java by devs5003 - May 24, 2020July 7, 20220 Use of Lambda Expression vs Anonymous Inner class Before going through the topic Lambda Expression vs Anonymous Inner class, we should have some glimpse on how these two look like. To proceed further we will have an example. Suppose we have to perform sorting on some set of Strings. For that we will take an array to given Strings, then we will implement the Comparator interface to sort them. First, we will implement it using anonymous inner class, then by using Lambda Expression in order to have clear picture on both. public class SortingTest { public static void main(String[] args) { String [] mobiles = {"Samsung", "Lenovo", "Xiaomi", "Oppo", "Apple", "Sony", "Blackberry"};
5 ways to create an object in java java Core Java by devs5003 - May 14, 2020June 3, 20223 As we know that creation of an object in java is a cost-effective affair. Therefore we should have knowledge of different ways to create Objects in java so that we can use a particular way in the given scenario to handle the situation in a better way. Here we will find out 5 ways to create an object in Java. Using new keyword : This way of creating object in Java is the most common way in all. Using newInstance() method of class 'Class' : You must be aware of the Reflection API in Java. However, under reflection API we have these classes 'Class' & 'Constructor'. Moreover, both classes have newInstance() method in it to create objects in Java. Therefore, we will see newInstance()
7 ways to print elements of a Collection in Java java Core Java by devs5003 - May 14, 2020November 25, 20250 In this article, we are going to learn 7 ways to print elements of a Collection in Java. However, I am sure that any java programmer will come across this situation multiple times while writing programs to develop any application/software. Especially while testing the program, printing of elements on console becomes a bit mandatory. Sometimes, it becomes confusing that which way we should choose to print the values of elements of the defined collection as per our requirement. I hope you will be able to tackle all the scenarios after going through this article accordingly. However, we will go step by step to get a hold on this topic. Let's consider a List as a Collection to demonstrate all the ways
Java with Blockchain (Cryptocurrency) java by devs5003 - May 2, 2020June 3, 20220 Java with Blockchain (Cryptocurrency) What Is a Blockchain ? A blockchain can be thought of as a decentralized, immutable data structure that undergoes state transitions that modify its state. State iterates with transactions or operations on the blockchain, the small print of which are written to the block— chain. These transactions are grouped into blocks, which are linked together, making up the blockchain.Much like the event log used in event sourcing, current state is derived by replaying the state transitions that have taken place previously. A blockchain is a distributed ledger technology (DLT), a term that has emerged for describing technologies like blockchain that provide decentralized storage of data. Development of Blockchain: A very brief history of Blockchain technology started with the cryptocurrency Bitcoin.
Skills for Java Developer java Developer Tools Microservices Spring Boot Spring Cloud by devs5003 - April 29, 2020February 29, 20240 Even with competition from new languages, the demand for Java developers also remains strong. In fact, Java is among the most in-demand programming languages on the job market, depending on whose numbers you look at. Java developers are reported to have the lowest career switch rate of any profession. It’s a great basis for a steady career. Let's first look at the list of basic Skills for Java Developer. List of Basic Skills for Java Developer However, this isn’t a complete list, below is a list at some of the basic skills needed to become a Java developer: Core Java with Java 8 new features (especially Lambda expression) Object-oriented programming (OOP) concepts and some common design patterns Abstract classes and interfaces Constructors
How to run a Java program in Windows 10+ ? Core Java java by devs5003 - April 28, 2020January 17, 20257 An essential target as a new learner of a programming language is running your first program. Java is a popular and flexible programming language known for its portability and wide range of applications. To run a Java program, we need to set up our development environment, write the code, and then execute it. In this article ''How to run a Java program in Windows 10+ ?'', we are going to discuss a summary of the complete steps involved in running our very first Java program. If you are going to learn/work on Java, your first step is to install java on your computer/laptop and check whether you have complete environment to start running your Java Programs or not. Here, we
Hello Java Techies, Professionals! java by devs5003 - April 23, 2020May 14, 20201 Welcome to Java World. Many more learning process on the way! Everyone will rock !!!:)