Friday, July 31, 2020

Top 5 Courses to learn Groovy and Grails in 2020 - Best of Lot

Hello guys, you might have heard about Groovy, if not maybe heard about Grails, Akka, Play, and Gradle, the top 5 Groovy framework Java developer used. Groovy instead of competing with Java, it focuses on co-existing with Java and enhancing Java developer's capability on Java's traditional weak areas like scripting. It's not easy to write a utility script in Java but it's super easy in Groovy. This makes Groovy a powerful tool for Java developers, especially experienced Java developers who drive things in their team, projects, and organization. By learning Groovy and Grails you can enhance your Java projects and do some tasks easily which would have been difficult in Java or would have taken more time.

The Complete Frontend and Backend Developer RoadMap

Hello Guys, if one of your goals is to learn to code or to become a Web Developer in 2020, then I have something significant to share with you, the Complete Web Developer RoadMap. This is an excellent illustration of how to become a web developer in 2020 and guide you on how you can learn and master Web Development in 2020. It's a collection of different paths to learning front-end, back-end, and all other things a Web developer should know.  You will not just know about web development but about essential programming stuff which is necessary for all kinds of programmers.

Thursday, July 30, 2020

Top 3 Courses to learn Svelte.js in 2020 - Best of Lot

Hello guys, you might have heard about Svelte.js or svelte, another JavaScript framework for building component-based UI. What? A new JavaScript framework, common give me a break. Well, It's a little bit different with established Javascript frontend frameworks like React, Vue.js, and Angular in the sense that it's more like a compiler than a framework or library. In a framework-based application, you ship your code and framework code to client and they work together in runtime to create magic. While in the case of Svelte.js you don't ship framework code to your client, instead you ship a code generated by Svelte compiler based upon the instruction you wrote.

5 Things to Keep in Mind while Running SQL Queries on Production Database

Did you ever face a situation where some of your innocuous looking action has caused production issues and that too big time? Well, I hope you have not because it's certainly, not a pleasant experience. One of such innocuous looking action is running SQL queries on production databases. I had that in the past very early in my career where I removed some config as duplicates only to find after a week that it stopped publishing messages to one of the downstream. When you work in complex systems that have so many components, millions of lines of code, thousands of configuration, and many databases with hundreds of tables, you have to be really careful with anything you do.

Wednesday, July 29, 2020

Top 5 Programming Languages Beginners Can Learn in 2020 - Best of lot

I have read somewhere that programmers should learn a new programming language every year ( I think it's code complete, not sure, though), but if you cannot do so, I suggest to at least learn the following five programming languages to do well in your career. Everybody loves polyglot programmer and an all-rounder who is versatile enough to write a quick script and can also write complex Java programs. In fact, it's almost mandatory for a senior developer to learn more than one language. Interviewers are giving more attention to an engineer who has good experience with multiple languages like C++ and Java go quite well, so is Python and Java. I personally like Software Engineers who have substantial experience in either C++ or Java and can write scripts in Groovy, Perl, or Python.

Monday, July 27, 2020

Google Protocol Buffers (ProtoBuf) - Best Alternative to Java Serialization

If you have done some serialization works in Java, then you know that it's not that easy. Since the default serialization mechanism is not efficient and has a host of problems, see Effective Java Item 74 to 78, it's really not a good choice to persist Java object in production. Though many of the efficiency shortcomings of default Serialization can be mitigated by using a custom serialized format, they have their own encoding and parsing overhead. Google protocol buffers, popularly known as protobuf is an alternate and faster way to serialize Java objects. It's probably the best alternative to Java serialization and useful for both data storage and data transfer over the network.

Sunday, July 26, 2020

Top 6 Courses to Learn AWS Lambda and Serverless Framework - Best of Lot

Hello guys, you might have heard about the Serverless architecture and AWS Lambda function as more and more software developers are talking about. AWS Lambda is an event-driven, serverless computing platform provided by Amazon as a part of Amazon Web Services. There is another serverless computing platform like Microsoft Azure that has Azure functions and GCP also has Cloud Functions. With Serverless frameworks like AWS Lambda or Azure Functions, a developer can write scalable, fault-tolerant code that runs in the cloud without provisioning or managing servers. I mean, you don't need to get an EC2 instance or a virtual machine to run your app. This also means you won't get billed for every hour even if your app is not running. AWS Lambda will only launch a container if there is a trigger like an HTTP request which needs to be processed.

Saturday, July 25, 2020

How to dynamically create a div in jQuery? Example

Many times you need to create an HTML element and dynamically add that into DOM without reloading the page. The traditional way of doing this is by using JavaScript's innerHtml() function but jQuery provides better ways to achieve the same effect. You can use jQuery DOM manipulation methods like append(), appendTo() or html() to add new HTML elements like div, paragraph, headings, image into DOM without reloading the page again. In this tutorial, I will show you how to dynamically create a div and add that into a page by using pure jQuery.

Top 5 Course to Crack Google Cloud Professional Data Engineer Certification in 2020 - Best of Lot

Hello guys, Google Cloud Professional Data Engineers are currently in demand for their ability to maintain the process of accumulating, converting, and publishing data with a certain level of expertise. They are mostly known for having the capability to put machine learning models into operation, creating and structuring data processing systems to work accurately, and ensuring that the data is secure and scalable.

Friday, July 24, 2020

How to Crack Java Programming Interviews in 2020? Topics, Courses, Books, and Questions

Java Interviews are a little bit different than traditional programming interviews on tech giants and product-based companies like Google, Amazon, Microsoft, or Facebook. First, even though it has questions from Data Structures and Algorithms like String or Array, you can still manage to clear Java interviews if you are not an expert on them. The questions are a little bit easier and more practical than those companies. Another essential thing about Java interviews are questions based upon Java programming language and JDK API. Since Java is also an Object-oriented programming language, you will find lots of OOP questions there.

Thursday, July 23, 2020

How to Find Middle Element of Linked List in Java in Single Pass

ow do you find the middle element of LinkedList in one pass is a programming question often asked Java and non-Java programmers in telephonic Interview. This question is similar to checking palindrome or calculating the factorial, where the Interviewer sometimes also asks to write code. In order to answer this question candidate must be familiar with the LinkedList data structure i.e. In the case of the singly LinkedList, each node of Linked List contains data and pointer, which is the address of the next Linked List and the last element of Singly Linked List points towards the null. Since in order to find the middle element of the Linked List you need to find the length of the linked list, which is counting elements till the end i.e. until you find the last element of the Linked List.

Top 5 Advance AWS and Cloud Computing Courses for Java and Spring Boot Developers - Best of Lot

Hello guys, if you have been reading technical blogs and articles then you might be hearing about wide-spread cloud adoption among all sizes of companies. In the last few years, many companies, both big and small have shifted their infrastructure to the cloud or in the process of doing it. I have no doubt that the next generation of Java applications will be written for and run in Cloud and that's why it's important for Java developers to learn about Cloud platforms like AWS, Azure, GCP, Cloud Foundry, and others. Thankfully Java frameworks like Spring Framework is taking this cloud move seriously and new frameworks like Spring cloud is getting popular which makes developing cloud-based application easy.

Wednesday, July 22, 2020

Top 5 Online Courses to learn Microsoft SQL Server (MSSQL) in 2020 - Best of Lot

Hello guys, you might know that along with Oracle and MySQL, Microsoft SQL Server is one of the most popular relational databases in the tech world. It's used in many big organizations like Investment Banks, Insurance companies, and particularly at firms that use Microsoft technologies like Windows Server. With the growing popularity and market share of Microsoft Azure, there is a good chance that the demand of Microsoft SQL Server will also increase, particularly in the cloud. There is already a high demand for both Microsoft SQL Server DBA and Programmers who have SQL Server experience, and that's why it's an excellent decision to learn MSSQL in 2020.

Tuesday, July 21, 2020

Udemy vs Coursera? Which is better to learn Tech and Programming?

When it comes to online learning, there are no better times than today, as you have access to a lot of platforms like Coursera, Udemy, Pluralsight, Educative, Lynda, CodeCademy, and many more. Out of these, Coursera and Udemy are probably the most popular ones, as more and more people have started using them. One question which keeps comings to me all the time is Coursera vs. Udemy? Which one is better for online learning and which has a better course in general? Earlier I have answered questions like Pluralsight vs. CodeCademy and Udemy vs. CodeCademy but never explained about Udemy vs Coursera, which many of my readers have been asking for some time. So, I decided to write this blog post to explain my point of view.

Monday, July 20, 2020

How to implement Command Design Pattern in Java with Example

Hello guys, it's been a long since I have shared a Java design pattern tutorial. I did share some courses to learn design patterns but haven't really talked about a particular design pattern in depth. So, today, we'll learn one of the important design pattern, which is often overlooked by Java developers. Yes, I am talking about the Command Pattern which can help you write flexible, loosely coupled code for implementing actions and events in your application. In simple words, the command design pattern is used to separate a request for action from the object which actually performs the action. This decoupling between Invoker and Receiver objects provides a uniform way to perform different types of actions. This decoupling is achieved using a Command object, which is usually an interface with methods like execute()

Saturday, July 18, 2020

How to find the largest and smallest number in given Array in Java

Hello guys, today I am going to discuss one of the frequently asked programming interview questions to find the largest and smallest number from an integer array. This question is commonly asked on telephonic interviews and the first round for screening candidates. This coding problem is in the same league of other frequently asked algorithmic questions like Fibonacci, Palindrome, Prime, and Power of two checks. They are easy but you will find them difficult during the interview because of the pressure, particularly if you have not solved them before. Sometimes even if you have solved the problem one time, you tend to do mistakes because you haven't understood them properly. So, always take your time to understand the question.

Top 6 AWS Solution Architect Associate Certification (SAA-C01 & SAA-C02) Practice Test, Dumps, and Mock Exams- Best of Lot

Hello guys, if you are preparing for the AWS Certified Solutions Architect Associate (SAA-C01 and SAA-C02) certification exam and looking for challenging practice tests to assess your preparation then you have come to the right place. In this article, I am going ot share the best Practice test and questions to prepare for the AWS Solution Architect Associate  (SAA-C01 and SAA-C02) exam from Udemy, Whizlabs, and other portals, totaling more than 2000+ practice questions. These practice tests are created by AWS expert and certified developer and Solution architects like Stephane Maarek and Cloud guru Ryna Krooneberg. Mock simulators play an important role in any certification and the AWS Solution Architect Associate-level exam is no different.

Friday, July 17, 2020

How to become a better Java Programmer?

First of all, I wish you a very happy new year, guys. It's that time of year when we start afresh, make plans, set goals, and make resolutions for the new year. Being a Java developer and author of a Java blog, I frequently receive a  a lot of requests from Java programmers from all over the world about how they can improve themselves? How they can become a better Java developer and do well in their job and career. In the past, I have shared my 10 tips to become a better programmer, and every advice on that article still holds true but given it's a new year. I have decided to jot down some new resolutions for Java programmers to improve themselves, enhance their knowledge on Java Programming, and increase their value for future career growth.

Top 5 AWS Certified Developer Associate Mock Tests and Practice Questions - DVA-001 Certification

Hello guys, time and again I have said that practice questions and mock tests are an integral part of passing AWS certifications be it AWS solution architect or this AWS developer associate exam. They not only help you to prepare in an exam like environment with time constraint but also re-enforce and solidify whatever you have learned from online courses, books, tutorials, and white papers. It doesn't matter whether you have joined AWS developer courses like Ryan's course on Udemy or Stephane Maarek's course, unless and until you have practiced enough problems, you are not really ready for the exam.

Thursday, July 16, 2020

How to Sort an HashMap by values in Java 8 - Example Tutorial

In the last article, I have shown you how to sort a Map in Java 8 by keys, and today, I'll teach you how to sort a Map by values using Java 8 features e.g. lambda expression, method reference, streams, and new methods added into the java.util.Comparator and Map.Entry classes. In order to sort any Map, like HashMap, Hashtable, LinkedHashMap, TreemMap, or even ConcurrentHashMap, you can first get a set of entries by using the entrySet() method and then you can get the stream by calling the stream() method. The entrySet()  method returns a Set which inherit the stream() method from the java.util.Collection class. Once you got the stream, you can just call the sorted() method which can sort all Map.Entry objects available in Stream using a Comparator.

Wednesday, July 15, 2020

StringJoiner.join() + String.join() Example in Java 8

Hello guys, joining multiple String literals or objects into one is a common programming requirement and you will often find situations where you need to convert a list of String or a Collection of String into a CSV String for your application. For a long time, JDK API has no way to join multiple String literals or objects together, which forces programmers to write hacks like looping through all String objects and manually joining them using String concatenation to create the final, joined String. Even though this approach worked, it was filled with errors and hacks like you need to be careful not to add delimiter before the first element and after the last element, which often caused issues, particularly in the case of beginners and junior Java developers.

Top 5 Courses to learn Django in 2020 - Best of Lot

Hello folks, If you are learning Python Programming language for Web Development, then you may have heard about the Django framework. Django is one of the popular web development frameworks to create modern web applications using Python programing language. Django is also the most popular and most mature Python web development framework around. It makes it easier to build better Web apps more quickly and with less code. Building web sites with Django is not just smart and efficient, but fun too! Learning Django can also boost your CV as its a very in-demand skill.

Tuesday, July 14, 2020

2 Ways to Check if a String is Rotation of Other in Java - Algorithms

Write a program to check if one String is a rotation of another String is a common coding problem you will find on programming job interviews.  A String is said to be a rotation of another String, if it has the same length, contains the same characters, and they were rotated around one of the characters. For example,  String"bcda" is a rotation of "abcd" but "bdca" is not a rotation of String "abcd". One of the simplest solutions to this interesting problem is first to check if two String has the same length, if not then one String cannot be the rotation of another. If they are of the same length then just create another String by concatenating first String with itself, now check if second String is a substring of this concatenated String or not, if yes, the second String is a rotation of first.

Monday, July 13, 2020

Grokking Algorithms Review - Best Book to learn Data Structure and Algorithms in Python

Hello guys, I have read many books on data structures and algorithms like Introduction to Algorithms by Thomas H. Corman and Algorithm design manual by Steve S. Skiena, so when I come to know about this book, I thought, just another book on algorithms, but I was wrong. This is not just another book on algorithms but one of the most interesting books you will ever read on Algorithms and Data structure. It doesn't cover all the data structure and algorithms you see in Computer Science but whatever it covers, it does really well and that's what matters most for beginner programmer or Computer Science students.

Sunday, July 12, 2020

Difference between JVM, JIR, JRE, and JDK in Java

JRE, JVM, and JDK are three terms you often heard in conjunction with Java programming language, and most people either confuse them or think they all are the same. In this Java article, you will learn what is Java Run-time (JRE), what is Java Virtual Machine (JVM) and what is Java Development Kit (JDK) along with Just in Time compiler or JIT. Once you know what JRE, JVM or JDK means you can differentiate them easily by yourself.  This article is in continuation of the Essential JVM options which every Java programmer should know. If you haven't read those articles, you can also read them as well. 

Saturday, July 11, 2020

How to delete a key value pair from a HashMap during Iteration in Java - Example tutorial

Suppose you have a Map or Dictionaries like HashMap or Hashtable, which contains key-value pairs like books and their prices, and you want to delete all books whose prices are greater than 40 USD, how do you that in Java? This is one of the most common scenarios while developing Java application and many Java programmers, will say that they will iterate over Map and check each entry and then use the remove(Object key) or remove(Object key, Object value) methods from java.util.Map to delete any mapping where the value is greater than 40 USD. Though the approach is right, the answer is wrong.

Top 5 Courses to Pass CompTIA Network+ certification - Best of Lot

Hello guys, CompTIA Network+ certification is a good one if you are planning to have any kind of job position that needs networking such as computer networking analyst computer support and so on. The certification is aimed for anyone beginner or advanced level of networking knowledge and it is good also if you are considering a career in the network industry. If you already preparing for CompTIA Network+ certification and looking for the best online training courses and practice tests to get ready for the exam then you have come to the right place.

Friday, July 10, 2020

Top 20 String Algorithm Questions from Coding Interviews

In this article, we are going to see the top 20 String based coding interview question and their solution to help programmers better prepare for interviews. The string is one of the most important data structures and available in almost every programming language like Java, C, C++, Python, Perl, and Ruby. Though there implement differ the essence remains the same like String is NULL terminated character array in C but String is an object in Java, again backed by character array. The string is also available on weekly typed languages like Python and Perl.  This is why you will always find some String based coding questions on programming interviews.

Thursday, July 9, 2020

Can a Non Static Method Access a Static Variable/Method in Java?

"Can a non-static method access a static variable or call a static method" is one of the frequently asked questions on the static modifier in Java, the answer is, Yes, a non-static method can access a static variable or call a static method in Java. There is no problem with that because of static members i.e. both static variable and static methods belong to a class and can be called from anywhere, depending upon their access modifier. For example, if a static variable is private then it can only be accessed from the class itself, but you can access a public static variable from anywhere.

Wednesday, July 8, 2020

Strategy Design Pattern in Java using Enum - Tutorial Example

Hello guys, how are you doing? I hope you all are fine and doing good in your life and career. Today, I am going to talk about the Strategy pattern, one of the useful design and coding pattern which will help you to write flexible code. The code which can withstand the test of time in Production. I'll also teach you how you can use Enum to implement the Strategy design pattern and Open Closed design principle better in Java. I have said this before that Java Enum is very versatile and can do a lot more than you normally expect from it. We have seen a lot of examples of Enum in my earlier posts like writing thread-safe Singleton using Enum and 10 ways to use Enum in Java.

Tuesday, July 7, 2020

Top 5 Courses to Pass AWS Certified SysOps Administrator Associate Exam - SOA-C01

Hello guys, I have been talking about AWS certifications for quite some time now and in the past shared how to prepare for AWS Cloud Practitioner, AWS Developer Associate, and AWS Solution architect exam, and today I am going to talking about AWS Certified SysOps Administrator Associate exam. This is probably the hardest associate-level AWS certification and I strongly suggest you appear on this exam after getting AWS Developer and AWS solution Architect exam. Though this is not pre-requisite and if you are working as DevOps engineer, you can directly go for this certification to further boost your credentials, but doing this will improve your chances to pass this certification in very first attempt and save both your time and money. It will also help you to score high which can further boost your Resume.

10 Differences between StringBuffer and StringBuilder in Java

Both StringBuffer and StringBuilder are two important classes in Java which represent mutable String i.e. the String object, whose value can be changed. Since String is Immutable in Java, any change or operation on String object e.g. converting it to upper or lower case, adding character, removing a character, or getting a substring, all results in a new String object. This can put a lot of pressure on the Garbage collector if your application generates lots of throws away String instances. To avoid this issue, Java designer presented initially StringBuffer class and later StringBuilder as mutable String. That's the main difference between String vs StringBuffer and StringBuilder and also one of the frequently asked Java questions for beginners.

Monday, July 6, 2020

Top 30 Java Phone Interview Questions Answers for Freshers, 1 to 2 Years Experienced

Hello guys and ladies, in this article, I am sharing 30 core Java technical questions, from screening and phone round of interviews. In telephonic interviews, questions are short, fact-based and Interviewer expects a to-the-point reply and some keywords in answers. Accordingly, I have given very short answers to all these questions, only the main points; just to make this a revision post and not the main source for preparation. For thorough preparation, my master list of 140+ Java questions is a better one to start with. I am also expecting every Java programmer to know answers to all these Java technical questions if he has more than 4 to 5 years of experience. It's only freshers and junior developers who need to do a bit of research to understand topics well.

Sunday, July 5, 2020

How to use filter + map + collect + Stream in Java? Example Tutorial

Hello guys, many of my readers emailed me to write a post about the map and filter function of Java 8 because they found it difficult to understand and use. Even though I have previously blogged about both map() and filter(), I am writing this post again to explain the concept in more layman's language for a better understanding of my readers and fellow Java developers. The map() function is a method in Stream class that represents a functional programming concept. In simple words, the map() is used to transform one object into another by applying a function. That's the reason the Stream.map(Function mapper) takes a function as an argument. For example, by using map() function, you can convert a list of String into List of Integer by applying Integer.valueOf() method to each String on the input list.

Saturday, July 4, 2020

Top 5 Courses for CompTIA A+ Certification in 2020 (with Practice Test) - Best of Lot

Hello guys, CompTIA A+ is a famous certification among beginners who wants to start a career as an IT professional and learn information technology in general. This IT certification doesn't have any requirement to take it and it is recognized in all companies around the world and includes some topics such as information security, network administrator, computer repair, operating systems, and many more computer fundamental topics. If you don't know what is CompTIA let me give you a brief overview. CompTIA stands for Computer Technology Industry Association.

Friday, July 3, 2020

Top 5 Books to Learn Concurrent Programming and Multithreading in Java - Best, Must Read

Books are essential to learning something new, and despite being in the electronic age, where books have lost some shine to the internet and blogs, I still read and recommend them to get complete and authoritative knowledge on any topic, like concurrent programming. In this article, I will share five best books to learn concurrent programming in Java. These books cover basics, starting from how to create and start a thread, parallel programming, concurrency design patterns, an advantage of concurrency and of course pitfalls, issues, and problems introduced due to multithreading. Learning concurrent programming is a difficult task, not even in Java but also in other languages like C++ or modern days JVM languages like Groovy, Scala, Closure, and JRuby.

Thursday, July 2, 2020

Top 5 Courses to become Google Cloud Certified Professional Cloud Architect in 2020

Hello guys, next to AWS, Goggle Cloud technologies are becoming a big part of most companies’ cloud data management system. A Google Cloud Architect aims at developing and managing solutions that are secure, scalable, and dynamic to drive business objectives. Global Knowledge tagged Google Cloud Professional Cloud Architect certification as one of the certifications in IT that paid the highest last year. Before you consider taking the Google Cloud Professional Cloud Architect exam, you'll need to be familiar with Google Cloud Platform Architecture This exam tests your ability to design and plan a cloud solution architecture, manage and provide the cloud solution infrastructure, design for security and compliance, and a whole lot more.

How to avoid deadlock in Java?

How to avoid deadlock in Java? Is one of the popular Java interview question and flavor of the season for multi-threading, asked mostly at a senior level with lots of follow up questions. Even though the problem looks very basic but most of the Java developers get stuck once you start going deep. Interview questions start with, "What is a deadlock?" The answer is simple when two or more threads are waiting for each other to release the resource they need (lock) and get stuck for infinite time, the situation is called deadlock. It will only happen in the case of multitasking or multi-threading.

Wednesday, July 1, 2020

How Thread, Code and Data Works Together- Story of a Multi-threading Program in Java

There are certain things, which you don't learn in academics or training class, you develop those understanding after few years of work experience, and then you realize, it was very basic, how come I had missed that all those years. Understanding of how a multi-threaded Java program executes is one of such things. You definitely have heard about threads, how to start a thread, how to stop a thread, definitions like its independent path of execution, all funky libraries to deal with inter-thread communication, yet when it comes to debugging a multithreaded Java program, you struggle.