HTML

Top 5 Books to learn C and C++ for Beginners - Best of Lot

If you are just starting out with computer programming, the sheer number of programming languages is simply overwhelming. It is therefore quite helpful to learn that a good number of these languages heavily borrow their syntax from C. Once considered the go-to language for general-purpose software development in the structured programming era, C has influenced quite a long list of languages to include PHP, JavaScript, Java, and Python. Using familiar C structures makes it possible for new languages to improve acceptance. C++ builds upon C to now offer support for objects and classes. To better understand these languages, here are 5 books to learn C and C++ from

Top 30 Spring Core, Spring MVC and Spring Security Interview Questions

Spring Interview Questions Answers 
Spring Interview Question is one of the first things Java programmer should prepare before appearing on any Java or Spring interview. With the immense popularity of Spring frameworks like Spring MVC and Spring Boot in Java world, focus on Spring skills on interviews is increasing day by day. For those who don't know, the Spring framework is one of the most popular structures for Java applications, which aims to simplify Java development. It revolutionized the Java development when it initially came with concepts of  Dependency Injection and Inversion of Control, which made writing testable and maintainable Java application

How to validate phone number in Java? Google libphonenumber library Example Tutorial

It's a common requirement to validate phone numbers for a Java web application, much like validating email addresses. Unfortunately, Java doesn't provide any built-in method to carry out this kind of common validation, I would love to have a validation package in Java, but don't worry there must be an open-source library to cover this deficiency, right? Yes, there is Google's phone number library which allows you to validate any phone number both international, USA specific or any country-specific.

7 Reasons of NOT using SELECT * in a SQL Query?

I have read many articles on the internet where people suggest that using SELECT * in SQL query is a bad practice and you should always avoid that, but they never care to explain why? Some of them will say you should always use an explicit list of columns in your SQL query, which is a good suggestion and one of the SQL best practices I teach to junior programmers, but many of them don't explain the reason behind it.  Unless you explain some reasons why one should not use SELECT * in queries, it's difficult to convince many SQL developers,  many of whom have started learning SQL by doing SELECT * from EMP in Oracle database. In this article, I will try to bridge that gap by giving some practical reasons why using SELECT * in the SQL query is not a good idea.

How to Create Java Project with Maven in Eclipse - Step by Step Guide

If you are not using Maven for managing dependency and creating a build for your Java project, then you are definitely missing something. Being an ardent fan of ANT, I started with Maven quite late, but once I started, I haven't looked back. Maven makes it so easy to add new open-source JAR files, building and testing your project that you wouldn't look back. By the way, like all the things starting is difficult. I spent countless hours will creating my first Java project using Maven and Eclipse, but those were days with older Eclipse IDE. Now with Eclipse Juno and indigo, you get inbuilt support of Maven, which means it's a lot easier to start working with the Maven-based Java project in Eclipse IDE.

5 Best Spring Professional Exam Certification Resources - Guides, Courses, Books, and Tutorials

Ever since Pivotal has announced that Spring training is not mandatory for becoming a Pivotal Certified Spring developer, more and more experienced Java programmers who have been using Spring for years are preparing for the exam. This is obvious because the expensive Spring training, which cost around 32000 USD in the USA and most of the western nations and about 50,000 INR in India, was the biggest hurdle on getting Spring certified. Even though the training is the best way to prepare for certification because it is totally focused on the certification exams and you will cover all topics there, it is not affordable for most of the Java developers around the world. Now, the cost of Spring certification has just reduced to 200 USD from the whopping 3200 USD it cost earlier.

Top 10 Java Collections interview Questions Answers for Beginners

Hello guys, if you have gone through a couple of Java Interviews then you might know that the Java Collections is an important topic. There is hardly any Java interview I have faced, and I have faced many where there are no questions from Collections. This Java Collection Framework interview questions and answers contain questions from popular Java collection classes like HashMap, ArrayList, HashSet, ConcurrentHashMap and legacy collection classes like Vector and Hashtable. These are the questions that have been asked in real interviews and also allows you to explore these essential classes in more detailed which will eventually make you a better Java developer. 

Top 5 Books to Learn Angular for Beginners - Best of Lot

Hello guys, if you have ventured into the Modern frontend development world then you may hear about the Angular framework, one of the leading JavaScript framework for web development. The first version of Angular to be ever built was AngularJs, which was developed by Google. It is an open-source platform that is powered by JavaScript for developing mobile and web apps and was first released in 2010 by Google. It was aimed at making web design and development easier for programmers. Six years later, the same team that worked on the AngularJs came together and wrote the second version of AngularJs. Only this time, they used Typescript to code it, and instead of AngularJs 2, they called it Angular 2. The same would go for the subsequent releases of the Framework.

Top 5 Books to Learn Java 8 and Functional Programming - Best of Lot

Hello guys, recently, I asked my followers on Twitter which Java version they are using in production, and most of them said Java 8. This is not surprising at all because many of the projects I have worked on also using Java 8 in production. After close to 5 years of Java 8 release, it is still the most used Java version in production. Even though we now have Java 12 many programmers are yet to learn Java 8 and I often receive queries like which books to read or which courses to follow. If you are learning Java 8 features like lambda expressions, Stream API, and functional programming in Java and looking for some exciting books and resources then you have come to the right place. In the past, I have shared some of the best Java 8 tutorials and courses and today I'll share some of the best books you read to learn Java 8 better.

Top 5 Books to learn React.js for Beginners in 2020

So, you are ready for the latest craze in coding today. Everyone is talking about this new React JavaScript coding language and you want to be a part of the React community. You are in the right place and now you are thinking about a great book to get you moving on learning the React approach to building components from the React JavaScript library. You know that your commitment is real because you are not intimidated by a technical book that averages 750 pages! Or, maybe you are brand new and are not even sure where to start your training in React JavaScript coding. It does not matter; today's top five book selection will take you from beginner to intermediate to advanced topics in React development.

How to Rotate an Array to Left/Right by a Given Number in Java - Coding Problem

Hello guys, welcome to this post with another array-based coding problem. In the last article, we've learned about finding missing numbers in the array with duplicates and today we'll solve the problem of rotating an array by left or right by a given number. For example, suppose an integer array {1, 2, 3} is given and it was asked to rate this array to the left by 3 then the result array will look like {2, 3, 1} because it was rotated twice on left. Similarly, if you are asked to rotate the same array twice by right then you'll get {1, 2, 3}, the same array is back. This is an interesting problem and it's quite easy to solve but I have seen many programmers struggle with this one as well. So, a little bit of practice and learning will not hurt.

Top 5 Books to Learn Python Programming in 2020 - Best of All

Python is one of the most popular programming languages, and there is a vast demand for Programmers who knows Python, and the best part is its increasing every year. If you want to learn Python in 2020 then you have come to the right place because earlier I have shared some of the free courses to learn Python and today I am going to share some of the best books to learn Python in 2020. Even though I am a Java Programmer, I am learning Python. In the real world, you often find that a big project in a bank or insurance domain leveraging several technologies together, like Java, C++, Python, UNIX, SQL, and several others.

How to Prepare for Spring Core Professional v.5.0 Certification Exam in 2020

Hello guys, If you have been doing Java development then you may know the benefits of the Spring Framework that makes it one of the best Java frameworks in the community. As an open-source framework, Spring offered the opportunity to build applications on the Java Enterprise Edition platform. First introduced in October 2002, Spring Framework obtained a recent stable release in the form of Spring v5.0 which brought things like Reactive programming and WebFlux. There is a huge demand for Java developer with Spring experience, in fact, Spring is often considered as the most important skill while hiring Java developers and many companies prefer to hire those candidates who have Spring Professional certification in their resume.

10 Examples of an Array in Java

Along with the String, the array is the most used data structure in Java. In fact, String is also backed by a character array in Java and other programming languages. It's very important for a Java programmer to have good knowledge of array and how to do common things with array e.g. initialization, searching, sorting, printing array in a meaningful way, comparing array, converting an array to String or ArrayList and doing some advanced slicing and dicing operation with an array in Java. Like my previous tutorials 10 examples of HashMap in Java, I'll show you some practical examples of an array in Java. If you think, any important operation is not included, you can suggest their examples and I'll add them to this list.

Top 50 Java Coding and Programming Problems for Beginner Programmers

Hello guys, if you are learning to code and programming or preparing for a programming job interview and looking for some practice material then you have come to the right place.  In this article, I am going to share some of the most common Java coding and programming problems for beginners. These are the problems, I have solved myself to learn to program and develop a coding sense. These programs are very simple but will teach you a lot about computer science, problem-solving, data structure, algorithms, programming languages, control structure and in general how to think of a solution and then translate into code. I call that coding sense and that's probably the most important thing for a programmer. It doesn't come overnight and it slowly develops when you utilize that part of your brain by solving coding problems.

22 Array Concepts Interview Questions Answers in Java

An array is one of the fundamental data structure and most of the other advanced data structures like list, hash tables are built using arrays.  Good knowledge of fundamental data structures like the array, linked list, a binary tree is not just essential for writing better code but also doing well on Programming Job interviews. Array-based questions are quite popular in Java interviews. There are two types of questions you will find, first which are based upon array implementation in Java and second which are based upon how to use an array data structure to solve some coding problems. The first type of question is quite popular in the telephonic round of Java interview and second is usually asked on written tests and face-to-face interviews.

Top 5 Free HTML and CSS Courses to Learn Frontend Web Development in 2020- Best of Lot

HTML and CSS are two pillars of web development, they are used to create web pages you see every day. HTML provides the structure to your web page, and CSS gives them the style to look better. If you want to become a front-end web developer or web designer, then a good knowledge of HTML and CSS is a must. Even though modern-day web development is all about framework and library, like  Angular and React, you still need to know HTML and CSS to understanding what's going on and troubleshoot any issue you face while developing a web application. Btw, JavaScript is another pillar of web development, but we'll not discuss this article. I have already shared some good books and courses to learn JavaScript before

Top 5 Free Courses to learn Node.js in 2020 - Best of lot

Node JS has completely changed the way JavaScript is used for development. Earlier JavaScript was considered as a client-side language because it runs on a browser and mostly used for client-side validations, animations, and interaction. Node.js takes that to the next level by allowing JavaScript to run on a server-side, which means you can now write JavaScript applications that can execute without a browser. Node JS uses Google Chrome's execution engine and asynchronous processing to do this. All you need to is include node.js script in your application, and you are ready to create server-side applications in JavaScript, which wasn't possible until a few years back.

Top 10 C++ Interview Questions and Answers from Investment Banks

Today, for a change I am not sharing any Java interview questions, but I am sharing a few C++ interview questions. There is a good demand for developers who know both Java and C++, particularly in investment banking domain, as a lot of high-performance applications like client connectivity, exchange connectivity, and order management systems (OMS) are written in C++. If you know both Java and C++ then you have a great chance to get a job in big investment banks like Barclays, Nomura, Deutsche Bank, and other Wall Street Firms.

Top 5 Free Courses to Learn Bash and Shell Scripting in Linux Online - Best of Lot

Hello guys, the importance of Linux is well known but what many programmers don't know about how to write shell scripts to make most of it.  Some of them even not familiar with various Linux shells like bash, csh, or ksh, which further limit their ability. If you don't know, bash is a UNIX shell and command language, which is also a default login shell for many Linux systems and Mac OS. It provides the ability to write scripts to do things programmatically.  Shell scripting is an important skill to become an efficient developer or programmer. It allows you to automate trivial tasks that otherwise take away your valuable time. It also allows you to do things quickly.

Top 10 Frameworks and Libraries Programmers can Learn in 2020 - Best of Lot

Hello Guys, we are just a few days away from 2020 now, and many of you might have already made your goals about what to learn in 2020, but if you haven't, then you have come to the right place. In this article, I am sharing some of the best frameworks and libraries for web development, mobile app development, and big data, an application developer can learn in 2020. The New Year will be all about the mobile. Machine learning, and next-generation web with a greater focus on big data technologies like Hadoop and Spark, but you can still learn the popular Java and Web development frameworks like React, Node.js, Spring Boot to take your career to the next level. These frameworks are tried and tested and will be here for at least the next 5 years to come.

Top 17 Linux, Networking, and SQL Interview Questions for Java Programmers

Hello guys, If you have worked as software developer or Java programmer then you now that SQL, Linux, and Networking fundamentals are essential skills for any Java developer, especially for server-side Java programmers. It actually doesn't matter whether you are applying for the job as Java developer or C++ developer, Python developer or Ruby programmer, SQL and UNIX always have some role to play in your career. It's even essential for people who have less to do with programming like application support guys, business analysts, project managers, and subject matter experts.  Hence, it's imperative for any programmer or IT professional to prepare both SQL and UNIX well before going for any job interview.

Top 5 Spring Security Online Training Courses for Java Developers

Security is one of the most important aspects of a modern web application, be it a Java web application, .NET, or writing using any other web technology. In the Java world, Spring Security rule the security space. It's one of the rare frameworks which provided many security features, e.g. authentication, authorization, session management, remember me, and several other useful features out-of-the-box. Since there was no competition for Spring security and it does its job very well, it soon becomes the de-facto standard for implementing security in both Java web applications, REST APIs, and core Java applications. The rise of the Spring framework certainly helps it to cement its place as well.

10 Useful Linux Command One Liners Examples for Programmers

Hello guys, Linux is an important skill for any Java developer becuase most of the server-side Java application runs on Linux boxes. At least you should be familiar with essential Linux commands like ls, cat, ps, top, find, grep, awk, sort, uniq, kill, xargs, curl, lsof, etc. I have shared a lot of useful Linux tutorials in this blog and Javarevisited, and you can take a look at them to learn about those commands in detail. Today, I am going to share some of the useful Linux one-liners you can use in your day to day life. These one-liners are either example of one single command or multiple commands used together to do a certain task like finding duplicate rows in a text file or counting how many times each IP address appear in a text file, much like group by clause of SQL.

10 Best Data Science and Machine Learning Certifications and Training Courses in 2020

If you work in the technology field today like you are a programmer or software engineer, then I am sure you have heard about terms like Data Science, Machine Learning, Deep Learning, Artificial Intelligence, etc. They are the latest technologies that are impacting every single sector, just like IT does it when it comes the first time. It doesn't matter if you are working for a bank or insurance sector, airspace, or defense, all fields were impacted by IT, and in the near future, they will be impacted by machine learning and artificial intelligence. That's why it's important to learn Data Science and Machine learning in 2020 and if you are looking for some good resources like courses and certification then you have come to the right place. In this article, I have shared the best Machine Learning Certifications from platforms like Coursera, Udemy, Pluralsight, DataCamp, and Udacity. Some of them are free but you mostly need to pay if you need certification.

Top 5 Amazon Web Services or AWS Courses to Learn Online - FREE and Best of Lot

Hello guys, if you are thinking about learning cloud technologies or cloud computing, and looking at the various cloud providers like AWS, GCP, or Azure, then you are going in the right direction. The future lies with Cloud, and it's essential for every developer to learn about cloud computing solutions. When we talk about Cloud, the first thing that comes in mind is AWS, the biggest Cloud Computing platform, and that's why I suggest a lot of developers learn it. If you want to learn Amazon Web Services, popularly known as AWS, and looking for some excellent resources like books, courses, and tutorials, then you have come to the right place. In this article, I am going to share some of the best Amazon Web Services or AWS online courses, which will help you to learn this revolutionary and valuable technology free of cost.

Top 10 JavaScript Frameworks and Libraries to Learn in 2020 - Best of Lot

There is no doubt that JavaScript is now the #1 programming language in the world and also the king of web development. If you want to become a web developer who can quickly create websites like you see on the internet, then a good knowledge of JavaScript and various, popular JavaScript web development frameworks is essential for you. These framework has completely changed the way people developed web application a decade ago. After node.js, it's even possible to create a complete web application from front-to-back using just one programming language, JavaScript. That's why it has become the preferred programming language of all Full-stack Web Developers.

Top 6 Free Courses to Learn BlockChain Technology in 2020 - Best of Lot

Hello guys, how are you doing? I hope you all are having a great time and working towards your goal this year. I have been sharing a lot of courses and tutorials in this blog about what to learn in 2019, starting from tools to frameworks, from libraries to programming languages, but one of the most critical technology, you can learn in 2019 is the Blockchain technology. It's one of most talked about technology at the moment and considered to be the next big thing after the invention of the internet as they provide a way to attain digital trust on the Internet.

What is the use of DispatcherServlet in Spring MVC? Interview Question

Hello guys, In today's article we are going to discuss one interesting and the important Spring MVC concept, which is also a popular Spring Interview question. How DispatcherServlet works internally in Spring MVC or What is the role of DispatcherServlet in Spring MVC is some of the frequently asked Spring MVC Interview Questions. You might have seen them already during your previous Java web development interviews but if you have not, it's a good question to know. In this article, I'll answer these questions by explaining What is DispatcherServlet and its importance in Spring MVC. The DispatcherServlet is one of the important components of the Spring MVC web framework and acts as a Front Controller.

Top 5 Free Object-Oriented Programming Online Courses for Programmers - Best of Lot

The OOP or Object Oriented Programming is a paradigm that allows you to write a program by modeling real-world things in terms of class and object. It not only make to represent a real-world thing in the programming world smoother but also allows you to manage the complexity of your program. Even though there are several programming paradigms, e.g., procedural and functional, most of the code we write today is object-oriented, and some of the most popular programming languages are object-oriented, like Java, Python, PHP, and JavaScript all supported object-oriented programming.

Difference between VARCHAR and CHAR data type in SQL Server

Hello all, today, I am going to share an interesting SQL Server interview question, which will not only help you in your interview but also in your day-to-day work. It explains one of the critical concepts of SQL Server, the difference between VARCHAR and CHAR data type. I am sure, you all have used both of them numerous times but because it's so common many of us ignore the difference between them and when asked to choose between VARCHAR and CHAR on interviews, they fail to give a convincing reason. The difference is not just significant from interview point of view but also from a robust database design because an incorrect choice of data type not only limit what kind of data you can put on but also waste precious space and makes your query slower, particularly when you have to deal with the massive amount of data.

Top 5 Free Apache Spark Course for Java, Scala, and Python Programmers to learn Online

Hello guys, if you are thinking of learning Apache Spark to start your Big Data journey and looking for some excellent free resources, e.g., books, tutorials, and courses, then you have come to the right place. In this article, I am going to share some of the best, free online Apache Spark courses for Java, Scala, and Python developers. If you don't know what is Apache Spark? And Why it's so crucial in the Big Data world, then let me give you a brief overview first. Apache Spark is another cluster computing framework like Hadoop, which is used to analyze a vast data set. Still, it's much faster as compared to Hadoop, which makes it ideal for today's high computing needs, e.g., processing a massive amount of data.

Is Java a Good Programming Language to Start With?

I often receive questions like which is the first programming language to learn first, Is Java the right programming language to start in 2020,  how good Java is as a first programming language, which is the best programming language for beginners, or shall I start with Java or Python. Well, the answer to all these questions is, Java is one of the most popular programming languages, and there are a lot of reasons to learn Java, starting with Job opportunity to leverage community support. In the context of beginning programming or choosing Java as the first language, my most significant reason is that it's simpler to learn. The last generation of programmers started learning to program using languages like BASIC and then grew up learning C and C++ with Java as their second or third programming language.

Top 5 Free Courses to learn Android Programming in 2020 - Best of Lot

Hello guys, Happy New Year, 2020 in advance. I am sure you all have made your goals and started planning on how to achieve them. If you are passionate about creating mobile games and applications and want to learn how to develop Android apps or want to become an Android application developer, then you have come to the right place. In this course, I am going to share some of the best and free Android development courses for Java programmers and others. You might know that earlier Java was the only language that is used to create Android applications. Still, since last year, Google has announced Kotlin as the official language for Android app development, which means you can use either Kotlin or Java to create Android apps.

9 ways to Close or Exit Vim Editor in Linux Command Line?

Hello guys, today, I am going to talk about Vim or VI editor, one of the most important tools for people working in Linux. You might not know but many developers struggle to get out of commands like Vim and telnet. I can say that becuase there was a time when I spend a good amount of time coming out from the telnet window. I tried everything from quit, exit, to Ctrl+C without any luck but a google search saved me. I documented my experience here and today I am going to talk about another common problem, how to come out from the Vim editor, or how to close the VI editor in Linux.

Top 10 Spring MVC and REST Annotations with Examples for Java Programmers

Hello guys, welcome to my third article on exploring essential annotations from the Spring framework, the most popular framework for Java development. In the first article, I have shared some of the most useful Spring Framework annotations, which were based upon Core Spring functionalities like dependency injection, inversion of control, and configuration, and in the second article, we have learned about important Spring Cloud annotations like @EnableConfigServer, @EnableEurekaSever, and @EnableDiscoveryClient. Now that you know those essential Spring annotations it's time to move towards Spring MVC and REST, one of the most used parts of Spring Framework.

Top 5 Free Courses to Learn CSS and Bootstrap in 2020 - Best of Lot

Bootstrap is one of the most popular front-end libraries which provides a customizable template of HTML, CSS, and JS for creating a modern and responsive website. All the beautiful website you see these days with large fonts and slick form fields are built using Bootstrap. If you want to learn Bootstrap and looking for some excellent online courses, then you have come to the right place. In this article, I am going to share some of the excellent Bootstrap courses, which are also free, and you can use them to kick-start your journey with the Bootstrap framework. If you are interested in modern web development, this is the framework you must learn this year.

How to debug a Java application running on Linux from Eclipse using Remote debugging - Step by Step Guide

The remote debugging of Java program is an ultimate tool in the arsenal of a Java developer, which is often become the last and only tool to investigate a bug on a Java application running on the remote host like on Linux server or Windows server. Almost all major Java IDE provides remote debugging like NetBeans, Eclipse, and IntelliJ IDEA, but I mostly use Eclipse for Java coding and so it's my preferred tool to remote debug a Java program. In order to set up remote debugging in Eclipse, you need to do a couple of tasks like you need to start your JVM with debugging parameters or arguments and then you need to create a "remote debug configuration" in Eclipse IDE itself.

Top 4 Free Microsoft SQL Server Books - PDF Download or Online Read

Hello Guys, today, I am going to share some of the excellent database and SQL server books that are freely available on the internet for reading online or download as PDF. If you have been reading this blog then you know that I love books, I love to read books, and I love to collect books, that's why I have a significant online and offline library. Many people question me, do I really find to read all the books which I share? Well, I don't read all books page by page, unless and until its something like Effective Java or Clean Code. I mostly skim through books and stopping on exciting and new things, which I don't know or probably have a misconception, but I do like to refer books many times. If I skim through a book, I know where I can find more information about a particular concept, and then I explore it in more depth.

10 Tools Java Developers Should Learn in 2020 - (UPDATED)

We are just a week or two away to 2020, and many programmers have already started making a good process to their goals for 2020, which is very good, but if you are someone, who is still not sure what to learn in 2020, then you have come to the right place. In the past, I have shared 10 things Java developers to learn in 2020, and last week, I published the top 5 Java Frameworks to learn, but there is one topic that kept coming from my readers.  The question which I have received this week a couple of times form my fellow Java developers and readers is which tools Java programmers should learn in 2020? Or what are some excellent Java tools used in application development? And finally, what should I learn in 2020?

Top 10 RESTful Web Service Interview Questions for Java Developers

REST is an architectural style of developing web services that have become immensely popular in the last couple of years and consequently gained a lot of importance in core Java and Java EE interviews. If you are a Java web developer, then you are most likely to see a couple of questions from web services every time you go for a Java web developer interview. One of the most frequent ones is the difference between REST and SOAP web services, which I have recently answered there, but there are a lot many other good questions I have collected from friends and my readers, which I have not yet published. In this article, I am sharing those questions, mainly based on REST-style web services for your practice and preparation.

Top 5 Courses to learn System Design and Software Architecture in 2020 - Best of Lot

Software design or System design is one of the tricky concepts to master. You can quickly learn a programming language like Java or Python, but creating software using that programming language is a totally different thing. That's where software design and coding skills comes to rescue. It's actually an art to structure your program, design your modules, specify boundaries and interactions with other parts of the system so that they are easier to read, maintain, and flexible to change. It's one of the most essential skills for a software developer but often gets ignored. If you look for an online course to learn Software design and architecture, you won't find many, forget about good ones.

Top 5 Spring Certification Books and Courses for Java Developers - Best of Lot, Must Read

As an author of Java blog and medium publication, I often receive questions about how to self-prepare for a technical certification like Spring Professional v5.0 certification from Pivotal, and which are the best books and courses to prepare for Spring Core certification? After answering a couple of my readers over Facebook chats and linked in, I decided to jot down my recommendations. Books, Online Courses, Study Guides, and Practice tests are some of the important resources to prepare for Spring certifications. In the last article, I have shared some of the best Spring certification guides for Spring Core and Spring web certifications and today I'll share some of the best books to learn Spring frameworks from the certification perspective.

How to write Clean Code using Java 8 Lambda and Stream - 2 Examples

Streams enable the user to combine commands in some sort of pipeline. A Stream does not store any elements. It is not a data structure. It just operates on the underlying data structure without modifying it. In addition to more readable code, we gain a much better way to execute operations in parallel. Let's assume we want to count the elements of a list fitting a criterion:

Collection myList = Arrays.asList("Hello","Java");
long countLongStrings = myList.stream().filter(new Predicate() {
          @Override
          public boolean test(String element) {
              return element.length() > 4;
          }
}).count();

Ok, right. This is not very clear nor readable. You have to read a lot of code and spend some time to find out what requirement is implemented with this code.

4 Best Books to Learn Web Service in Java - SOAP and RESTful

If you are a Java developer and want to learn how to develop Web Services in Java, both SOAP and RESTful, but confused about where to start, then you have come to the right place. In this article, I am going to share some of the best books to learn about both SOAP and RESTful web services in Java. If you are not familiar with Web Services, it's a way to expose the services provided by your application to other developers and applications. For example, if your system offers weather information, then the user can go and check whether manually by looking at the Web GUI built using HTML, CSS, and JavaScript. Still, by exposing the same information using Web services, you allow a programmer to display as they want.

Top 5 Books to Learn Grails for Java and Groovy Developers - Best of Lot

Earlier, I have shared some of the must-read Groovy books, and today, I'll share some of the best books to learn Grails for Java developers. Grails is a web application development framework completely written in Groovy. The Grails and Gradle framework are built using the Groovy language. Grails is the framework to develop a web application using Groovy. The concepts within Grails, like interceptors, tag libs, and Groovy Server Pages (GSP) are very similar to what we have in Java. You'll be amazed at how quickly you can have a first-class web application up and running from ground zero. Grails includes everything you need in a single zip file on a web server (Jetty), a database (HSQLDB), Spring, Hibernate, even a Groovy version of Ant called GANT.

Top 10 Java 9 Tutorials and Courses - Best of Lot Must Read

It's been more than a year or so since JDK 9 was launched, and the new year is probably the best time to learn Java 9 and get yourself familiar with new features and enhancements on existing APIs. The highlight of the JDK 9 release was Project Jigsaw or Module system. The Java 9 Platform Module System allows Java to move forward by modularizing the JDK as well as adding modules as first-class citizens to Java, but that's not the only thing to look forward, there are many small changes which are very useful in day-to-day coding. For me the static factory methods introduced in List, Set, and Map to create an immutable list, set and the map is the most interesting one. Along with several changes in Stream API and Optional class. Those are the ones, I will most likely to use as soon as we start with JDK 9.

12 Advanced Java programming Books for Experienced Programmers - Part 2

This is the second part of 12 must-read advance Java programming books for intermediate and experienced Java programmers. In the first part, I have shared books to learn and master concurrency, performance, design patterns, and Java collection framework, which is essential for every Java developer irrespective of experience. On the other hand, In this article, I will talk about more advanced concepts, like security, Java 8, best practices, etc., which is more important for senior Java developers. As an experienced Java developer, a lot is expected of you. Junior developers look at you for guidance, and project managers look at you to solve problems and bail them out at critical junctures.

Top 10 Books for Coders of All levels - Must Read Best of Lot

Coding is one of the most essential skills for programmers, and if you want to survive as a programmer, you must improve your coding ability. Gone are the days when you can get a software development job without having you write a single line of code and then somehow survives in the role by doing support, coordination, and other non-coding activities. Companies, both big and small, are increasingly testing the coding skills of candidates before hiring. It's widespread for programmers to pass a coding test before a telephonic round of interview. Some of the companies even hire websites like HackerRank and others to check the coding skill of potential candidates, many others give candidates to take home coding tests. In short, companies have a lot of focus on the coding expertise of potential hires.

Top 10 REST API, Microservices, and RESTful Web Services Book for Java Web Developers

In recent years, REST has become the standard style for developing web services, also known as RESTful Web Services. These web services take advantage of REST principles, which leverages all goodness of HTTP to provide scalable and robust web services. As a Java Web developer, it's high time that you get familiar with the REST concepts and the REST style of developing web services in Java, also known as RESTful web services, and nothing is better than to start with a good book. I often receive a request about which book should I read to learn REST? Or what are some best books to learn to develop RESTful Web services in Java, etc.? In this article, I will suggest some books which will teach you both designing a REST API and developing RESTful web services in Java.

Top 5 Books to Improve Coding and Programming Skills - Must Read, Best of Lot

Learning a Programming language, like Java, Python, or C++ is easy, but learning to write good code is not. Writing good code is more Art than Science and also an important differentiating factor between an average programmer vs. a good programmer. Since most of the programmers often look for inspiration and resources to improve their coding skill, I decided to share some of the good books which can help them to improve their coding.  Since many universities, colleges, and training courses only teach programming languages but not the art of coding, it still remains one of the self-learned skills which many programmers acquired either in Job or working in real-world projects.

Top 10 Algorithm books Every Programmer Should Read

Algorithms are language agnostic, and any programmer worth their salt should be able to convert them to code in their programming language of choice. Unfortunately, I have come across several programmers who are REALLY good on programming languages like Java or Python like knows minor details of API and language intricacies but have very poor knowledge of fundamentals Algorithms and Data Structure. Just ask them to implement any popular sorting algorithms like quicksort or merge sort, and they will fall apart. If you expect them to know more advanced and sophisticated algorithms like String processing algorithms, graph algorithms, tree traversal, or greedy algorithms, be ready to check on Interviews; otherwise, you might end up with some surprises.

Top 10 Free Java Courses for Beginners and Experienced Programmers

The Internet is full of useful resources, and no matter what you want to learn, there is something useful available for free. You just need to commit your time and effort. But at the same time, it's challenging to choose in the massive sea of free tutorials and courses on the internet. If you are not careful, you will spend most of your time browsing and changing classes without learning anything. That's where a curated list helps. Curation is my hobby and passion. I love to read books and courses which allows me to curate useful resources and share with you guys.

Top 10 Free Python Programming Books - Download PDF or Read Online

Every Programmer loves free eBook and free courses, even more, if it comes from renowned technical book publishers like Oreilly and Manning. In the last article, I have shared some of the best free Java programming books, and today I am going to share some of the equally best free Python Programming books. These books are not illegal copies that are uploaded into the internet, but they are the legal books, made free by their authors and publishers, much like free Udemy courses, which their instructor made free for educational and promotional reasons. Though these are not full-fledged books but concise eBooks, they are very informative and comprehensive enough to learn things like Data Science and Functional programming in Python.

Top 5 Free Courses to Learn React in 2020 - Must Join, Best of Lot

The React JS or React is one of the most popular frameworks or Javascript library for building user interfaces. It's backed by Facebook, and it's often viewed as an alternative to the tremendous Angular framework by Google. React is also very flexible, fast, easy to learn and fun to work with. It is designed to make the process of building modular, reusable user interface components simple and intuitive and that's why most of the modern GUI and web applications are build using React framework. It is developed at Facebook and it focuses on the 'View' aspect of MVC in web applications. The component-based development is one of the biggest advantages of the React library which is both rich and extensible.

Top 10 Java 8 Tutorials, Classes, and Courses - Best of Lot, Must Read

It's a long time since Java 8 was released, and there are so many Java 8 tutorials are written by Oracle, bloggers, and other peoples, but which should you read? Which tutorials are worth of your time? Actually, this question is asked to me by one of my reader called John, he was asking me about some good Java 8 tutorials, which he can read to start with. This encouraged me to take a look at some of the Java 8 tutorials available on the internet and form a list of best. I have just used three criteria, content, language, and length. Because tutorials complement books, they should not be like the book. They should be small enough to complete in a few hours and complete enough to give useful information. I also like tutorials, which discusses practical problems and examples.

Simple Java Date and Time Example - LocalDate and MonthDay

The code is self-explanatory, so I won't elaborate on it in detail, but you should notice the use of LocalDate, which is a date without a time or a timezone, as well as the MonthDay class, that just represents a month with a day. Btw, if you have any doubt in understanding any concept or any part of the code then feel free to drop a note and I'll try to explain. If you think an explanation is needed, tell us an I may update the article as well.

Top 5 Courses to Learn Spring Boot in Depth - Best of Lot

Hello guys, if you remember, one of my goals was to learn Spring Boot in 2020, and I have started working towards it. As I have talked about my 3 point action plan to learn new technology, the first step is to attend some online courses and start building from that. If you are not sure what is Spring Boot and why should you learn Spring Boot, then let me tell you that it should be the first Java frameworks you should learn in 2020. The Spring Boot makes it really easy to work with the Spring framework by removing all the starting hurdles concerning setup and configuration. In one word, it makes it possible to write a Spring-based Java application and run them like core Java applications, like from the primary method.

Top 10 Websites for Programming Job Interview Questions - Best of Lot

If you are a fresher or final year graduate preparing for your placement interview, or a Java developer preparing for your next job and looking for some websites, blogs, and forums for programming interview questions then you have come to the right place. In this article, I am going to share some of the really good websites and resources that will help you to prepare and do well in programming interviews. Though there are a large number of good books with lots of programming questions like Cracking the Coding Interview and Programming interview exposed, they are not the most interactive or comprehensive resources. Since with times, interviews are also changing you need to keep yourself updated with the latest programming job interviews and Java questions.

Top 5 Design Patterns Books for Java Developers - Best of Lot

Design patterns are an essential topic for object-oriented programmers, like Java and C++ developers. It becomes even more important as your experience grows because everybody starts expecting a lot more from you in terms of writing quality code. I often receive emails from intermediate and senior Java developers about progressing to the next level, like how to become Tech Lead, Team Lead, or a software architect; knowledge of design patterns play an important role in taking more technical responsibility. While the GoF book is the bible for object-oriented design patterns, in my opinion, it is a bit too dry and academic.

How to find files with Matching String in Linux - grep -l command example

The grep command from Linux is one of the powerful commands to find files containing some text, but when you use grep, it not only print the file name but also the line, which is including the matching text. This is actually required and needed in most situations. Still, sometimes you only want to grep to show just filename and path and not the matching text. For example, when you are searching for some configurations like a Linux or database hostname across all configuration files in your application host, then you just want to see which file has contained those references.

5 Free SQL Books For Beginners and Experienced - Download PDF or Read Online

There is no doubt that SQL is one of the most essential skills for Programmers, IT professionals, Software Engineers, Quality Analysts, Project Manager, Data Scientist, Database admins, and Business Analysts. I had even mentioned this as one of the top skills in my post about 10 things every programmer should know, if you haven't read that yet, you can read it here, it's completely worth of yours time. Since many Enterprise applications use the relational database at their backend, like Oracle, Microsoft SQL Server, MySQL, it's crucial to learn SQL to work with those applications and use the data stored on those databases.

How to set JAVA_HOME and PATH in Linux - Step by Step Guide

.Hello guys, welcome to the world of Java application programming. One of the hardest thing to mater is not any feature but environment-specific details which nobody teaches. To bridge that gap, I am going to cover a couple of very important environment variables like PATH and JAVA_HOME.  The JAVA_HOME environment variable points to the JDK installation directory and used by many Java tools and applications like TomcatMaven, Eclipse, NetBeans or IntelliJIDEA, etc. to figure out Java executables as they need Java for running. Like in the previous article, I explained a Maven issue (invalid target release: 1.7, 1.8)  related to Java version, which occurred even though the correct version of Java installed on the machine, but JAVA_HOME was pointing to an older version.

Top 5 Free JavaScript Books for Beginners - Download PDF or Read Online

The internet is full of good things, and one of them is free eBooks and PDF. Programmers can almost run anything by these free books. Earlier I have shared some of the free JavaScript tutorials, and in this article, I am going to share 5 good books to learn JavaScript, which is open to read online or allow you to download PDF for offline reading. JavaScript is probably another language I recommend someone who knows Java, Why? Because it's really ubiquitous. There is almost no website that is not using JavaScript in one or another format. Some use JavaScript for client-side scripting and animation, while others use JavaScript on the server-side with libraries like Nodejs and Reactjs it forms the unique triangle with HTML and CSS.

Top 5 books to learn Java Virtual Machine, Garbage Collection, and Performance in-depth

In the last couple of years, I have seen a trend of many Java developers wants to learn more and more about JVM internals and how Java Virtual Machine and it's different component works. This trend was not so strong in the last decade, but with more and more focus on concurrency, performance, and scalability, Java developer is exploring JVM internals, Garbage collection, and Performance tuning in more detail. Unfortunately, there are not many good books to learn about JVM internals and its different components, but fortunately, we have an excellent Java Virtual Machine specification to learn fundamentals. It is also the most up-to-date reference because Java and JVM are kept changing, especially after Java 10.

Top 5 Free C++ Courses to Learn Programming Online - Best of Lot

Hello, guys, you might know that C++ is one of the most popular and powerful object-oriented programming languages, and if you want to do low-level stuff, then it's the best language to start with. Most of the complex software like Operating Systems, Database Management Systems, and Powerful trading systems, are written in C++. While many of us have learned to program by using C and C++, let me honest with you; learning C++ is challenging, especially if you are coming from Python or Ruby background. There are many areas that are tough to grasp like pointers and memory management, but you will learn them slowly, and that's where these free C++ courses will help you.

How to use grep to search for text in files and directories in terminal - Recursive grep Example in Linux

One of the most common tasks while working in programming projects is finding files containing some specific text like you have your application deployed in the Linux server, and you are migrating your database from one server to another. Now, you want to file all config files and scripts which are referencing your old database using the hostname or IP address, so that you can replace them with an alias. Well, you should always use an alias to connect to the database or any other system, but sometimes it happens you have to use a hostname. Anyway, how do you find all those files containing hostname in your Linux machine? Well, the grep command is here to help you.

Top 5 Courses to Learn Ruby and Rails in 2020 - Best of Lot

Hello guys, welcome to this post, here you will find some of the best free courses to learn Ruby programming language and Ruby on Rails framework online. If you don't know what Ruby is and what is Rails framework, then let me tell you that its one of the simplest programming languages with little to no syntax. If you are new to programming or never coded before, then also developing a Ruby application will be much more comfortable than choosing any other programming language like Python or Java. When it comes to developing web development, the Ruby on Rails also makes your job easy by making several useful assumptions based upon convention, which means you can do more by writing less code.

How to copy Files from one directory to other in Java

I have been programming in Java for a long time and you won't believe but there was no file copy method in the Java API until Java 7. At that time, our options were either write it ourself, using a FileInputStream, a FileOutputStream and a buffer to copy bytes from one to the other - or better yet, use the FileChannel.transferTo() method or just use the Apache Commons' FileUtils which was a life save those days and even today. JDK has evolved now and you have a decent API to copy files from one directory to another. In this article, I'll show you both the pre-Java code for copying files from one directory to other as well post Java 7 code which makes this task a lot easier.

How to test REST API from Command Line using cURL command in Linux

The curl or cURL command of Linux is a compelling and versatile command which allows you to send sophisticated HTTP request right from your Linux command line window. You can use the cURL command to test your RESTful Web Services by sending GET and POST requests, doing authentication, saving a cookie in the file, etc. The curl command is, in fact, the go-to tool for many Java and Spring developers working in web applications and consuming data from the secured RESTful Web Services. Still, you can also use it to test your simple REST Web APIs without security. I have used it many times to check if our Web service is up or not, or is there any error while accessing those services.

Top 7 Free courses to learn Selenium in 2020 - Best of Lot

Testing is an integral part of software development, and we have long been relied on manual testing by testers and QA professional to ship quality software and find bugs, but that's not sustainable anymore. There is an increased focus on automation testing nowadays, and Selenium is leading the way with its web drivers. If you don't know what selenium is, it's a free automation testing tool for web applications. It can work with different web browsers like Chrome, Firefox, Internet Explorer, Opera, and simulate human-like behavior. By using Selenium, you can programmatically interact with all the different elements on a webpage. You can click on them, input text, extract text, and so much more.

Top 5 Spring Boot Annotations with Examples for Java Developers

Annotations have completely changed the way you write Java code. It's now impossible to write any Java code without using annotations but that's for good. They provide a lot of value and that's why it's important for a Java developer to get familiar with essential annotations of the framework he or she is using. When I think about Java, some of the essential annotations which come in our mind are @Override, @SuppressWarning and @Deprecated. Similarly, if you are using the Spring Boot framework, an extension of the Spring framework which aims to simplify the Java development with Spring, you will often end up using a couple of annotations like @SpringBootApplication or @EnableAutoConfiguration.

Top 10 Books Every Programmer Should Read

There is saying that if you learn from your mistakes, you will only going to learn few things, but if you learn from other's mistake, you can learn a lot of things in a short time, and what could be a better way to learn from someone's experience then reading books. Programming as a career is about constant learning and updating yourself, but unfortunately, there is no right way to begin. School and Colleges are far behind when it comes to real-world programming, and every Computer Science graduate is not lucky to work in a company that is great in training. The other viable option is to read books, join online courses, and follow advice from the great programmer and authors who are gone to that path, and learning from the book is the most tried and trusted way of all of them.

3 Ways to change Embedded Tomcat Server Port in Spring Boot Application

If you know Spring Boot really simplifies the Java web development by embedding essential libraries as well as a tomcat server to run Java web application. By default, this tomcat server listens on port 4588, and for any reason, if you want to change, then Spring boot provides several configuration options to achieve that. For example, I wanted tomcat to listen on port 8080 because port 80 is forwarded to 8080 in our Linux machine, and we wanted our clients to provide our client with a clean URL without a port.

3 Best Books to Learn Java Programming for Beginners

There is no doubt that the best book to learn Java for beginners is indeed Head First Java, 2nd Edition. It's interesting, informative, and yet easy to read, which is what a beginner wants. The only drawback of this book is that there is no 3rd Edition available. Java has moved a long way since 2nd edition of this book was released. Yes, the core of the Java programming language is not changed much, and information given in this book is still relevant and sufficient for anyone who wants to learn Java programming, but an up to date book comprising changes introduced in Java 8 and Java 13 would have been much appreciated.

How does Dispatcher Servlet Work in Spring MVC Architecture?

One of the common interview questions in Spring MVC is, how does the DispatcherServlet process a request in Spring MVC? or What is the role of DispatcherServlet in the Spring MVC framework? This is an excellent question for any Java or Spring web developer because it exposed the candidate's knowledge about Spring MVC architecture and how its main components like Model, View, and Controller.   The answers to this question show how much you know about the Spring MVC framework and its working. Actually, DispatcherServlet plays a significant role in Spring MVC. It acts as a front controller, and all incoming request passes through it, of course, you can configure this in URL pattern of DispatcherServlet declaration in web.xml, but this is the case for many Spring based web application.

Merge Sort in Java - Algorithm Example and Tutorial

The merge sort algorithm is a divide and conquers algorithm. In the divide and conquer paradigm, a problem is broken into smaller problems where each small problem still retains all the properties of the larger problem -- except its size. To solve the original problem, each piece is solved individually; then the pieces are merged back together. For example, imagine you have to sort an array of 200 elements using the bubble sort algorithm. Since selection sort takes O(n^2) time, it would take about 40,000-time units to sort the array. Now imagine splitting the array into ten equal pieces and sorting each piece individually still using selection sort. Now it would take 400-time units to sort each piece; for a grand total of 10*400 = 4000.

Top 5 courses to learn Java 9, 10, 11,12 and 13 in 2020 - Best of Lot

Hello guys, even though Java 13 is available now, many developers are still on Java 8 and not really caught up with changes in Java 9, 10, 11, or Java 12. If you are also on the same boat and want to start with Java 9 features, then you have come to the right place. In this article, I am going to share some of the best online courses to learn changes in Java 9, 10, 11. These JDK releases are packed with some powerful features like modules, API enhancements like factory methods for an immutable list, set, and map, some changes on stream API and optional class, new features on process API, etc. Since it's always good to keep yourself up-to-date, its time to spend some time to learn those new features and make use of them to write better code in Java.

Difference between int and Integer in Java?

Both int and Integer are two important data types in Java which often cause confusion between new Java developers. Both int and Integer used to represent numeric data and related to each other in the sense of primitive and Object. Int is a primitive data type that has 32-bit and stores values from  -2^31 to 2^31-1 while Integer is a class that wraps an int primitive inside it. In this article, you will learn why we need Integer Class in Java, particularly, if we already had the int data type, how to convert from int to Integer in Java, and various points on Integer in Java, ranging from basics to advanced BigInteger and AtomicInteger stuff.

What is the use of ContextLoaderListener in Spring MVC?

The ContextLoaderListner is one of the essential components of the Spring MVC framework, probably the most important after the DispatcherServlet itself. It is used to create the root context and responsible for loading beans, which are shared by multiple DispatcherServlet like beans related to the service layer and data access layer. In general, When you develop Spring MVC based web application and also using Spring in the services layer, you need to provide two application-contexts. The first one is configured using ContextLoaderListener, and the other is set using DispatcherServlet. The DispatcherServlet is responsible for loading web component-specific beans like controllers, view resolvers, and handler mappings while, as I said before, ContextLoaderListener is accountable for loading middle-tier and data-tier beans which forms the back end of Spring applications.

Top 5 Free Courses to Learn Jenkins, Docker, and Kubernetes in 2020 - Best of Lot

Hello guys, you might have heard about DevOps and all the attention it is getting now. The DevOps is a new phenomenon, and there is a mad race among senior developers to become a DevOps engineer. Well, I am not one of them as my passion is for becoming a software architect, but I have indeed spent some time learning DevOps just to increase my knowledge of the field as I strongly believe in the phrase, jack of all and master of one :-). In DevOps world, tools matters a lot, and the whole of the DevOps phenomenon to create an automated pipeline for delivering quality software heavily relies on cleaver uses of tools like Maven, Jenkins, Docker, Kubernetes, and others.

How to Remove Duplicate Elements from an Unsorted Array in Java? [Solved]

This is one of the common technical interview questions which are asked to entry-level programmers and software engineers. There are also a lot of variants of how do you remove duplicates from an array in Java like sometime array is sorted, and other times it's not-sorted or unsorted. Sometimes, the Interviewer just spends more than half of the interview on this question by progressively making it more difficult by imposing new constraints like removing duplicate elements in place or without using any additional data structure, etc. Btw, If you are allowed to use Java's Collection framework, then this is quite easy to solve. Still, if you are not allowed to use Set, Iterator, and other Java utility classes, then it suddenly becomes a tricky algorithm question.

Top 6 Free Maven and Jenkins Online Courses for Java Developers - Best of Lot

Maven and Jenkins are two of the most popular tools in the Java world. Maven helps to organize your project and provide support to build and deploy Java projects while Jenkins can provide continuous integration and delivery by completely automating build and deploy projects. As a Java developer, it's crucial that you know both Maven and Jenkins because every other company is using it, and not knowing these technologies will only put you behind other candidates if you go for a job. If you have yet to learn Maven and Jenkins then you have come to the right place, In this article, I will tell you 6 free course you can take to learn Maven and Jenkins online, but before that, let's understand what Maven and Jenkins are and what are their purpose.

How to check if two String are Anagram of each other - Coding Problem

Hello guys, if you are preparing for Coding interviews then you already know that String is one of the most popular topics. You will bound to get some string-based coding problems on interviews. If not, you have come to the right place becuase we'll look one of the most popular String programming interview questions today,  how to check if two given string are Anagram of each other? Two String is said to be an anagram of each other, if they contain exactly the same characters but in a different order. For example "ARMY" and "MARY" is an anagram of each other because they contain exact same characters 'A', 'R', 'M' and  'Y'.