HTML

How DispatcherServlet process an HTTP request in Spring MVC application? Interview Question

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.

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.

Spring HelloWorld Example in Java using Annotation and Autowiring

Spring framework has gone a couple of releases since I last share the Spring hello world example with XML configuration. In this article, I am going to explain to you how to create a Spring hello world example with Spring 4.2 release and by using Annotation for dependency injection and autowiring. So no more XML files to specify bean dependencies. It's a simple program that shows how you can use the Spring framework to create Services that are loosely coupled. The example will show you the basic concept of dependency injection by creating a simple Java application that greets the user. It's actually a little bit complex version of a simple Helloworld program but if you need decoupling and in-direction you need to accept some level of complexity. That's the price you need to pay to achieve the flexibility in your code.

Top 5 Free Courses to learn PHP and MySQL in 2020 - Best of lot

If you want to build web applications quickly like overnight or over the weekend, then PHP and MySQL are the right choices and because of this power, they are also the best language for freelancing and startups where quick turnaround time is required. PHP and MySQL are incredibly powerful open source technologies that allow programmers and web developers to create functional websites and apps that go way beyond basic HTML. PHP is specially designed to generate interactive and dynamic websites and also known as the server-side scripting language, while MySQL is one of the leading relational databases along with Oracle and Microsoft SQL Server.

Can you take training after passing OCMJEA 6 Exam (1Z0-897), Assignment(1Z0-865) and Essay (1Z0-866)?

Yes, you can take the training after passing the OCMJEA exam. Even though the training is a must to obtain the certification, You do not have to complete it before you give an exam. It is just listed as the first step to prepare well for your exam. If you have decent experience in core Java and enterprise Java, you can always complete the training when you are comfortable about it, but you must complete it to become an Oracle Certified Java Architect. In the last step of the exam, you need to submit a form containing the training detail to obtain credits for training.

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 the 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 5 Free Database and SQL Query Courses for Programmers to Learn Online - Best of Lot

Hello guys, I have been sharing some free programming resources e.g. books and courses in this blog for quite some time. Earlier I have shared free courses on Java, Maven, Spring, and Data Structure and Algorithms and today I'll share some of the free online training courses to learn SQL and Database. Why you should learn SQL? Well, it's one of the must-have skills for programmers, application developers, and IT professionals. Like Linux, this is one skill that is going to serve you longer than any other programming language, framework, or library. The SQL is used to interact with Database Systems like Oracle, MySQL, and Microsoft SQL Server. As per ANSI (American National Standards Institute), SQL stands for the Standard Query language for Relational Database Management Systems.

OCMJEA 6 FAQs - Oracle Certified Master - Java EE 6 Enterprise Architect (1Z0-807, 1Z0-865 and 1Z0-866) - Frequently asked Questions

The OCMJEA (Oracle Certified Master Java EE Enterprise Architect) is one of the toughest Java certifications to crack, even for experienced Java developers. It requires architectural decision skills for the given business problem. Step 1 multiple-choice tests your skills by scenario-based business problems to choose the best design solution. The exam not only covers the Java EE platform but it also tests your security, hardware architecture, and design pattern skills.

5 Free Linux Courses for Programmers and IT Professionals to Learn Online

Linux is one of the most popular operating systems to run server-side applications. I have seen almost all Java applications running on Linux, barring a couple of them, which runs on Windows as service. If you take out standalone apps like IDEs or tools, most of the real-world Java applications run on Linux, e.g., payment gateways, trading systems, and other financial applications. That's why it's essential for any programmer, IT professional, or a developer to learn and understand Linux, both the operating system, as well as the command line.

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 Spring Framework Books for Java developers (Includes Spring Security and Spring Boot) - Best of lot

Spring framework is one of the most famous structures in the Java world, which used to develop Java application, both core Java and web application. It is also one of the most job oriented skills for Java developer; hence many beginners and intermediate Java programmers try to learn Spring framework on their own. Though there are some excellent Spring training courses available online, books are still the most popular and preferred way to learn Spring frameworks like Spring core, Spring Boot, Spring MVC, Spring Batch, or Spring Security.  I often receive queries for Spring book recommendations e.g., which Spring book is suitable for beginners, or which Spring book is good for intermediate and advanced developers, which book should I read to learn Spring boot, Spring Cloud, Spring Batch, or Spring security, etc.?

Top 13 Java Serialization Interview Questions and Answers for Beginners and Experienced Developers

There is no doubt that Java is vast and there are some Java topics which many Java developers rarely explore. Serialization is one of them which is rarely used in practice but quite popular during Java interviews. It's also one of the difficult topics to master and that's why I am going to share some frequently asked Java Serialization interview questions in this article.  I don't know why people ask so many questions from Selrization if not everyone uses it but I have always seen some questions from Java realization. These are also the toughest and confusing questions to answer and more likely cannot be answered by an average Java developer.

How to swap two Integers without using temporary variable in Java?

One of the oldest trick questions from a programming interview is, How do you swap two integers without using temp variable? This was first asked to me on a C/C++ interview and then several times on various Java interviews. The beauty of this question lies both on the trick to thinking about how you can swap two numbers without the third variable, but also problems associated with each approach. If a programmer can think about integer overflow and consider that in its solution then it creates a very good impression in the eye of interviewers.

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 5 Free Courses to Learn TypeScript in 2020 - Best of Lot

If you are interested in learning TypeScript or Angular, one of the popular JavaScript frameworks for developing front-end, which uses TypeScript and looking for some resources like 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 TypeScript online courses you can use to learn this powerful programming language. For those who don't know TypeScript, it's a new dynamically typed programming language from Microsoft which augments JavaScript's programming syntax by adding some new features which help in object-oriented application development, particularly introduction of Types.

String Rotation in Java - How to check if strings are rotations of each other or not

String-based algorithmic questions are very popular in Java interviews e.g. checking if two String is the anagram of each other (see), or checking if given String is a palindrome (see), or just finding permutations of given String (see). One of such popular String-based interview questions is about to check if two Strings are a rotation of each other in Java. In order to solve this question, you should know what is String rotation? Well, A string is made of characters and you just rotate the String around any character like "programming" will become "ingprogramm" if we rotate the String on trailing character 3 times.

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.

Binary tree InOrder traversal in Java using Recursion

The InOrder traversal is one of the three popular ways to traverse a binary tree data structure, the other two being the preOrder and postOrder. During the in-order traversal algorithm, the left subtree is explored first, followed by root, and finally nodes on the right subtree. You start traversal from root then go to the left node, then again go to the left node until you reach a leaf node. At that point in time, you print the value of the node or mark it visited and moves to the right subtree. Continuing the same algorithm until all nodes of the binary tree are visited. The InOrder traversal is also known as the left-node-right or left-root-right traversal or LNR traversal algorithm.

Top 5 Free Core Spring, Spring MVC, and Spring Boot Courses for Beginners to learn Online

I have been sharing a lot of resources e.g. books and courses recently and when I published my list of Top 5 courses to learn Spring and Hibernate, many of my readers asked about a similar list of free courses to learn Spring Framework like Core Spring, Spring MVC, Spring Security, and Spring Boot. That request was always back of my mind but I couldn't get time to put together a list, which I can share with you guys, but today is the day. In this list, I have compiled some of the best online free courses to learn Spring Framework from scratch, online at your own pace. You can not only learn core Spring like the framework which provides dependency injection, but also Spring MVC, the most important framework for a Java Web Developer, Spring Security, and Spring Boot to take your career to next level.

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.

How to do Inter process communication in Java? Example Tutorial

Hello guys, in the past, I have shown you how to do inter-thread communication in Java using wait-notify, and today, I will teach you how to do inter-process communication in Java. There are many ways to do inter-process communication Java, you can use Sockets, both TCP and UDP, you can use RMI, you can use web services, or you can use the memory-mapped file. The socket is the most common way of achieving inter-process communication if two processes are in two different hosts and connected via a network. RMI and WebService can also be used for similar purposes, but the last one, inter-process communication using memory-mapped files, is particularly useful if you are communicating with other processes in the same host, sharing the same memory and file system.

Top 5 Free Courses to Learn Web Development in 2020 - Best of Lot

Hello guys, I have been sharing a lot of free online courses and books on various technology and programming language like Python, Java, C++, JavaScript, PHPReact, Angular, Spring in this blog from quite some time and today I have brought some great free courses to learn the basics of web development. Web Development is an essential skill for programmers in this era of Startups. As a programmer or software developer, you should know how to create a website and how to create a mobile app of your own. Though it's not easy. Coding is like art, and many people born with coding sense; I mean they love coding; they love to create stuff like websites, mobile apps, games, etc. and they love to automate things.

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.

The InOrder traversal of Binary tree in Java without Recursion

Hello guys, I have been teaching you about different tree traversal algorithms and so far we have seen both pre-order and post-order algorithms to traverse a binary tree and today you'll learn about the in-order or sorted order algorithms. This is actually the second part of implementing the inorder traversal of a binary tree in Java, in the first part, I have shown you how to solve this problem using recursion and in this part, we'll implement inorder traversal algorithm without recursion. Now, some of you might argue, why use iteration if the recursive solution is so easy to implement? Well, that's true, but the iterative solution is often regarded better as they are not prone to StackOverFlowError. Another reason why we are discussing the iterative solution here is because of technical interviews.

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.

Java Program to Find Square Root of a Number - Example Code

Java program for a square root or a number in Java
How to write a Java program to find the square root of a number is a common Java programming exercise that many institute use in there Java course along with Java program to print Fibonacci series and How to find Armstrong numbers in Java, which we have seen earlier.  Java program for square root is also a popular question during college semester exams and various programming tests. If you are familiar with Java API then writing a Java program that can find the square root of a number using java.lang.Math class is not difficult. You just need to pass a double value and it returns a double which is the square root of the number you passed.  

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 implement Radix Sort in Java - Algorithm Example

The Radix sort, like counting sort and bucket sort, is an integer-based algorithm (I mean the values of the input array are assumed to be integers). Hence radix sort is among the fastest sorting algorithms around, in theory. It is also one of the few O(n) or linear time sorting algorithm along with the Bucket and Counting sort. The particular distinction for radix sort is that it creates a bucket for each cipher (i.e. digit); as such, similar to bucket sort, each bucket in radix sort must be a growable list that may admit different keys.

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.

How to implement Binary Tree PreOrder Traversal in Java without Recursion - Iterative Example

This is my second article on how to implement binary tree pre-order traversal in Java. In the first part, I have shown how to traverse a binary tree with a pre-order traversal algorithm using Recursion, and in this article, you will learn how to implement pre-order traversal without using Recursion. You might be thinking that why do you need to learn the iterative solution if a recursive solution is possible and easy to write? Well, this type of question is mostly asked on Programming Job interviews and Interviewers like to see how comfortable a candidate is with both Recursion as well as using other data structures and iteration.

Top 8 Websites to Learn JavaScript Coding for FREE

Like, live in a world of the internet, which is full of resources. You can learn whatever you want and that too, without spending too much money. If you're going to learn JavaScript, there are plenty of websites where you can learn JavaScript online for FREE. You don't need to pay any fees, but you must have a good internet connection to take full advantage of these online resources. Out of so many websites which offer free tutorials, articles, blog post, videos, and podcasts, I have chosen these six websites to recommend to anybody who wants to learn JavaScript.

How to find Nth Fibonacci Number in Java - Coding Problem with Solution

It's been a long time since I have discussed a coding problem in this blog. So, I am going to start with the probably the oldest one of them, how do you find the nth number in a Fibonacci sequence? or how do you find the Fibonacci number in Java? or maybe printing the Fibonacci series. If you are a regular reader of this blog then you might know that I have already discussed both recursive and iterative algorithms for printing the Fibonacci series but never really discussed especially writing a program to return the Nth Fibonacci number in Java. Don't worry the wait is over as in this article, we'll solve this common problem and learn a bit more about problem-solving, recursion, iteration, and some basic algorithm skills.

How to remove duplicate characters from String in Java? [Solved]

Hello all, how are you doing? It's been long since I have shared a coding problem from the interview. The last one I discussed was about finding Nth Fibonacci number, one of the popular dynamic programming problems. Nevermind,  today, you are going to learn about another popular coding problem.  How do you remove duplicate or repeated characters from String in Java is one of the frequently asked strings based coding problems from Interviews. This problem is very similar to removing duplicate elements from an array which we have discussed in the past here after all String is a character array in Java. If you know how to solve that problem, you should be able to solve this one as well.

3 Books and Courses to Learn RESTful Web Services using Spring and Java

Hello guys, if you know Spring framework, then there is a good chance that you have heard about the classic Spring in Action book by Craig Walls. It's one of the best books to learn Spring, and many Java developers, including me, have learned Spring from that. But, even though the Spring in Action 5th Edition is one of the best books to learn Spring framework, it's just not enough to learn intricacies of developing a modern, full-featured RESTful Web Service using Spring Framework. It does have a chapter on developing RESTful Web Services. It nicely explains concepts like @RestController, @ResponseBody, @ResponseStatus, HTTP message converters, content negotiation, but that barely touches the surface of developing a production-quality RESTFul Web Service.

Top 40 Perl Programming and Scripting Interview Questions and Answers for Programmers

Hello guys, if you have been working as a professional Software developer then you may have heard about Perl, one of the most powerful scripting languages. Perl is really great when it comes to creating reports, write scripts to analyze text, and connect to DB, load data and generate reports. Perl is even more important for support professionals, business analysts, and IT professionals who need to work in the field of operations. That's why Perl questions are quite common during Software developer and IT support interview, especially if the Job description mention Perl or you have added Perl as a skill in your resume or LinkedIn Profile.

How to Find Top Two Maximum Number from Integer array in Java

Hello guys, I have been sharing a lot of Programming interview questions and coding problems to learn programming better which is appreciated by you guys. In this post, I have come with another simple programming problems for Java beginners. I love to share short programming problems because they help in developing programming sense. Many people will argue against simple problems like prime numbers, palindrome, and factorial, but I really find them useful, especially for beginners. A beginner is far away to solve a complex data structure problem or even more complex problems like those appear in TopCoder or other programming sites. Programmers learn gradually and they need the joy of doing something and seeing results much quicker than any other. Small success motivates them.

Top 5 Free Courses to Learn Swift Programming in 2020 - Best of Lot

Hello guys, how are you doing this lazy Saturday? You might be thinking, as a Java developer why I am suggesting you learn Swift. Still, the truth is that I am not suggesting you abandon Java and join Swift, I am suggesting you join Swift if you want to develop iOS applications. We all use Apple's product, and we love them; I have used iPod, iPhone, iPad, Apple Watch, and even MacBook, and every time I use their product, I just say wow, and Swift is no different from that. It's a programming language from Apple, so you will find all the features which make Apple product great. It's only because Apple has kept education in mind while creating it. If you have an iPad, you might have also seen the Swift Playground app, which is also a great app to learn Swift and iOS.

How to Reverse a String in place in Java - Example

One of the common Java coding interview questions is to write a program to reverse a String in place in Java, without using additional memory. You cannot use any library classes or methods like e.g. StringBuilder to solve this problem. This restriction is placed because StringBuilder and StringBuffer class define a reverse() method which can easily reverse the given String. Since the main objective of this question is to test the programming skill and coding logic of the candidate, there is no point giving him the option to use the library method which can make this question trivial. Now, how do you solve this problem? If you are familiar with an array data structure then it would be easy for you. Since String is backed by a character array, you can use the same in place algorithm we have used to reverse an array in place.

Top 5 Courses to learn Go or Golang Programming language in 2020 - Best of Lot

Hello guys, today, I am going to share about one of the modern programming language called Go or Golang, which is created by none other than Google to make their software development process smoother and better. In 2009, Google set out to create a new programming language that was fast, productive, and fun-to-code but without compromising readability, productivity, and simplicity, and that' how to Go programming language was born. Even if the name of Google wasn't enough, this programming language is created by Ken Thompson, who have invented time tested technologies like C programming language and UNIX operating system, along with a key contribution from two Google employees Robert Griesemer and Rob Pike.

How to Find Missing Number in a Sorted Array in Java

Today's coding problem is not very new, it's an age-old classic Programming interview Question. You have a sorted array containing n - 1 unique number starting from 0 to n - 1. There is only one number missing in this range and you need to find that out. I mean you need to write a Java method to find the missing number and print its value in the console. Some of you might have seen this question before, but if you have not been asked this question before, what is the first approach comes into your mind to solve this question? Since only one number is missing, many programmers come up with the approach of iterating over the array, and comparing each element with the expected one like the first element should be 0, the second element should be 1, and so on.

10 Must Read Books for Experienced Programmers and Software Engineers

Hello guys, In this article, I am going to share some good books for the experienced programmer which can help them to become an expert. Learning never stops but once you become a professional programmer and spent a couple of years doing professional programming, you need to make some effort to reach the next level i.e. to become an expert programmer. Continuously doing the same stuff and not analyzing will not make you better. This is where these books can help you.

Top 10 Free Courses to Learn Algorithms and Data Structure in 2020 - Best of Lot

Algorithms and Data Structure are two of the most fundamentals and essential topics from Computer Science, which is used everywhere in software development. I firmly believe that a good knowledge of these two topics is also crucial to become a better programmer because a person who has a good understanding of algorithms and data structures can make thoughtful choices and write programs that can handle changes better and perform well. They are also essential to crack coding interviews at top tech companies like Google, Microsoft, Amazon, Facebook, and Apple, which puts a lot of emphasis on candidate's ability to use existing data structure and algorithms to solve complex problems they have never seen before.

How to send Email in Java using Spring - JavaMailSenderImple Example

Email is an essential function of any enterprise Java application. Your application will need Email functionality to send reminders, bills, payments, confirmations, passwords, alerts, and several other kinds of system notifications. There is hardly any enterprise application in Java that doesn't send emails. It could be for a functional reason or non-functional reason but you will find yourself writing code to send emails every now and then, but it's not straight forward in Java. You need to include Java Mail API and learn some key classes and how to configure them to send emails from Java Programs. You can see the whole process in my earlier article about how to send emails from Java Program, but the point is that its not so easy.

How to deal with java.net.SocketException: Connection reset Exception in Java

Hello guys, from the past few months, I have been writing about different socket related errors on Java application, and today I am going to talk about another common socket related exception in Java -  java.net.SocketException: Connection reset Exception. There is no difference between exceptions thrown by the client and server. This is also very similar to the java.net.SocketException: Failed to read from SocketChannel: Connection reset by a peer but there is some subtle difference. The difference between connection reset and connection reset by peer is that the first means that your side reset the connection, the second means the peer did it. Nothing to do with clients and servers whatsoever

Top 5 Courses to Learn Artificial Intelligence in Python - Best of Lot

Hello guys, Artificial Intelligence is one of the growing fields in technology and many developers are trying to learn Artificial Intelligence to take their career next level. If you are a Python developer and looking for the best courses to learn Artificial Intelligence with Python then you have come to the right place. In this article, I will share the best courses to learn AI basics as well as some hands-on courses to practice AI with the Python library. I first come across AI when DeepMind beat Garry Kasparov, one of the finest players of Chess. It was way back in the 1990s, and AI has come a long way since then. Now, Google is using the same DeepMind to reduce electric bills of its Data Center by 40%, and Elon Musk is talking about Self driving cars.

5 Ways to implement Singleton Design Pattern in Java

This article introduces the singleton design pattern and its 5 implementation variations in Java You will learn different ways to implement a singleton pattern and also understand the challenges with creating a singleton class like thread-safety issues and serialization issues.

Problem
At most one instance of a class must be created in an application.

Solution
That class (singleton) is defined including its own instance, and the constructor must be private.


3 Ways to Reverse an Array in Java - Coding Interview Question

Hello guys, today we are going to see another common coding question from interviews - how do you reverse an array in Java? This is a popular array-based coding problem and often asked programmers to check if they can code or not. Well, there are multiple ways to solve this problem. You can reverse array by writing your own function, which loops through the array and swaps elements until the array is sorted. That's actually should be your first approach to coding interviews. Later you can impress the interviewer by a couple of other tricks, which is specific to the Java development world. For example, you can reverse an array by converting an array to ArrayList and then use this code to reverse the ArrayList.

Nth Highest Salary Example in MySQL and SQL Server - LeetCode Solution

Nth Highest Salary in MySQL and SQL Server - LeetCode Solution
---------------------------------------------------------------
Write a SQL query to get the nth highest salary from the Employee table.

+----+--------+
| Id | Salary |
+----+--------+
| 1  | 100    |
| 2  | 200    |
| 3  | 300    |
+----+--------+

For example, given the above Employee table, the nth highest salary where n = 2 is 200. If there is no nth highest salary, then the query should return null.