Top 3 Courses to learn Svelte.js in 2021 - 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 the 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 the Svelte compiler based upon the instruction you wrote.

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.

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 2021 - 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.

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 Online Courses to learn Microsoft SQL Server (MSSQL) in 2021 - 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 for 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 2021.

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()

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.

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.

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.

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 Framework in 2021 - 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 programming 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 websites with Django is not just smart and efficient, but fun too! Learning Django can also boost your CV as it's a very in-demand skill.

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.

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.

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. 

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 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.

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.

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.

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.

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.

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.

Top 5 Courses for CompTIA A+ Certification in 2021 (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.

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.

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.

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.