Disclosure: This article may contain affiliate links. When you purchase, we may earn a commission.

How to print a Right Triangle Star Pattern in Java - Example Tutorial

Hello Java Programmers, here we are back again with a pattern based exercise. In the past, I have shared article on how to print pyramid pattern of stars in JavaLeft Triangle Star Pattern, and Pyramid pattern of alphabets, and in this article, I will show you how to print a right triangle start pattern in Java.  Pattern based exercises are great way to learn programming and coding as it encourage you to use logic and use essential programming constructs like loop and arrays. 

Difference Between Iterator and Enumeration In Java

What is the difference between Iterator and Enumeration in Java is one of the oldest core Java Interview Questions. While I haven't seen this question for a long time, I still think its an important concept to know and remember for Java developers, especially those who are tasked to work in existing project which may be using Enumeration. The Iterator and Enumeration are two interfaces in Java and used for traversing in java collection we found these two interface in the java.util package .whenever we go for an interview if interviewer goes in collection topic he will often ask the difference between this two .so let's see one by one difference between this two and compare which is used when and which one is better.

[Solved] How to convert Decimal to Binary Number in Java? Example Tutorial

Hello guys, how are you doing? I have been sharing a lot of programming interview questions and coding problems for practice in this blog. Earlier, I have shared 21 String programing questions, 100+ data structure questions, and 20 System design questions and this week's programming exercise is to write a program to convert a decimal number to binary in Java. It's a simple exercise for beginners who have just started learning the Java programming language. Decimal numbers are base 10 numbers, which means there are exactly 10 digits to represent a number, starting from 0 to 9, on the other hand, the binary number system has just two digits 0 and 1, which is known as bits. 

[Solved] How to find all pairs which add up to a given value in an Integer Array in Java? Example

Hello guys, if you are preparing for programming job interview then you know that the problem of finding all pairs which adds up to a given value in a give array is a popular array based coding question. This question is also known as Two sum problem because you need to find pair of two elements in the array whose sum is equal to given number. For example, you have given an array of integers with values {1, 2, 3, 4, 5, 6} and you need to find all the pairs whose sum is equal to 5. In this case, there are two such pairs (1, 4) and (2, 3) so your program needs to print them into console. 

3 Difference between multi-threading and multitasking? [Answered]

Hello guys, what is the difference between multithreading and multitasking is a common Java interview questions. If you are also wondering what it the real difference between them as they sound similar the continue reading this article and you will find the answer. In the programming world, there are two main ways to improve the throughput of a program,  by using multi-threading and by using multitasking. Both take advantage of parallelism to efficiently utilize the immense power of the CPU and improve the throughput of your program. Actually, multi-threading is nothing but thread-based multitasking. 

How to convert String to Date in Java? Example Tutorial

Hello guys, if you are wondering how to convert a String to Date object in Java then you have come to the right place. Data type conversion is one of the most common tasks in programming and every Java  programmer must know how to convert one type to another type. There are many times when you will be required to convert a String to LocalDate or java.util.Date object mostly in a different format like dd-MM-yy or yyyy-MM-dd or simply yyyy MM dd. For example, clients pass dates as String to the Server or sometimes we read Date related data from CSV file. Java provides API for parsing String to date using DateFormat class, though Java's Date and Time API is severely criticized, it is also the most used Date and Time format solution. 

10 Best Udemy Courses of Colt Steele for Web Developers in 2022

Before we get to the 10 best Udemy courses of Colt Steele, let me tell you who the man really is. Colt Steele is one of the most popular and highly-rated instructors on the Udemy platform. He is also a highly-decorated professional developer with a serious love for teaching. Colt Steele has spent the last few years teaching normal people to program at two different impressive boot camps. He has helped hundreds of people become professional software developers and change their lives. His students now work in companies like Google, Salesforce, and Square. Impressive, right?

What is difference between start and run method of Thread in Java? Answer

Hello guys, what is the difference between calling start() vs run() method in Java multithreading is a popular core Java interview questions and if you are wondering the subtle difference between two then you have come to the right place. In this article, I will answer this question and show you an example as well. If you remember, a Thread is started in Java by calling the start() method of java.lang.Thread class, but if you learn more you will find out that the start() method internally calls the run() method of the Runnable interface to execute the code specified in the run() method in a separate thread. 

How to delete multiple elements from a LinkedList in Java? Bulk Remove Example

Hello guys, if you are looking for an easy way to remove a sub set of elements from a LinkedList in Java then you have come to the right place. In the past, I have shown you how to sort a LinkedList in Java and how to create your own linked list implementation in Java and in this article, I am going to introduce you with an interesting method which can be used to delete a portion of LinkedList in Java in shot. Yes, there is a method exists  but not many Java developer knows about it. The method is called subList() and you can use this method with clear method in Java to delete a portion of linked list in one shot.

Top 10 Tough Core Java Interview Questions Answers for Programmers

tough core Java interviews questions and answers
What is a tough core java interview question? Why do people look for tough Java questions before going for an interview? well, I don't think I need to answer these tough questions because it's pretty natural to prepare for tough questions even if you are not expecting tough questions from core Java. If you are prepared for the tough and tricky Java interview question then you feel more confident and answer other Java interview questions with confidence. 

Difference between Self and Equi Join in SQL - INNER Join example MySQL

The main difference between Self Join and Equi Join is that In Self Join we join one table to itself rather than joining two tables. Both Self Join and Equi Join are types of INNER Join in SQL, but there is a subtle difference between the two. Any INNER Join with equal as join predicate is known as Equi Join. SQL Joins are the fundamental concept of SQL similar to correlated and noncorrelated subqueries or using group by clause and a good understanding of various types of SQL join is a must for any programmer.

Difference between fixed vs cached thread pool in Java

There are mainly two types of thread pools provided by Java's Executor framework, one is fixed thread pool, which starts with fixed number of threads and other is cached thread pool which creates more threads if initial number of thread is not able to do the job. The newCachedThreadPool() method is used to create a cached pool, while newFixedThreadPool() is used to construct a thread of fixed size. Cached thread pool executes each task as soon as they are submitted, using an existing thread if its idle or creating new threads otherwise, while in case of fixed thread pool, if more tasks are submitted then idle threads then those task are put into a queue and later executed once any other task has finished.

Top 15 Java Web Service Interview Questions with Answers

Java Web Services Questions and Answers
Web Services interview questions are part of J2EE interviews for jobs which are looking for some experience in Java web services Space. Most of the Web services questions come from two different ways of implementing Web Services like SOAP and REST. SOAP is standard and mature way of calling Web Services which uses XML while REST is a new way of implementing Web Services which is based on HTTP protocol. In fact REST Web Service interview questions are getting more and more popular on the web services interviews in Java, So if you are going for any Java J2EE interview which require some web service experience, be prepared with both SOAP and REST Web services questions.

Top 5 Books to Learn Web Development for Beginners in 2022 - Best of Lot

Having a career in web development can be a fun and fabulous experience. There are a lot of online videos on YouTube or paid courses to teach you this field, but not all people are fan of videos and many of us like to learn from books. So I’ve collected some of the best web development books to help you learn this field in a small amount of time and even maybe get a real job after completing them. While I also advocate a hybrid approach where you can start with these free web development online courses first to learn the 20% stuff which are used 80% of time and then move to books, but its totally up to you. 

10 Best Udemy Courses of Tim Buchalaka for Java and Python Programmers

Hello guys if you are looking for best Udemy courses for Java developers, mostly from Tim Buchalaka then you have come to the right place. For those of you who don't know, Tim Buchalaka is a highly-experienced software developer. During his long glittering career, he has worked for a lot of major companies like Fujitsu, Mitsubishi, and Saab. Tim Buchalaka's amazing video lectures have been used to train software developers in major companies like Mercedes-Benz, PayPal, VW, Pitney Bowers, IBM, and T-Mobile. What sets Tim apart from loads of other instructors is the fact that most of those instructors have never been professional programmers. They also cannot boast about a distinguished professional development career like him.

2 Ways to solve FizzBuzz in Java? [Example]

Hello guys, if you are learning to code or preparing for interviews and looking how to solve the FizzBuzz problem in Java then you have come to the right place. Earlier, I have shared 75 programming exercises and in this article, I will teach you how to solve the FizzBuzz problem in Java. FizzBuzz is one of the most frequently asked questions on programming interviews and used to filter candidates on Coding interviews who can't code. It looks extremely simple but it's tricky for those programmers or coders who struggle to structure their code or lack the ability to convert a simple algorithm into code. 

Difference between HashMap vs TreeMap vs LinkedHashMap in Java

Though all three classes like HashMap, LinkedHashMap and TreeMap are implementation of java.util.Map interface, there is some functional difference between them. Perhaps most notable difference between them comes from their iteration order. HashMap makes absolute no guarantee about in which order you can iterate their keys, any application depending upon iteration order of HashMap is fragile, because it can change anytime. Infact, in Java 7, iteration order of HashMap is different than Java 6. On the other hand TreeMap is a SoretedMap and keeps their key in particular sorted order, enforced by either natural order of keys or Comparator instance provided during construction of TreeMap. 

Top 5 Books To Learn Machine Learning and AI in 2022

Hello guys if you want to learn Machine Learning and Artificial Intelligence and looking for best books then you have come to the right place. Earlier, I have shared best Machine learning and AI courses and today, I am going to share best books you can read to learn Machine Learning and AI in 2022. Machine learning is considered a subset of artificial intelligence. They are used a lot in our daily lives, like in google, to give you the search results to the YouTube recommendation videos and amazon recommendations for shopping. It is also used for self-driving cars and googles assistance. Basically, it will take the data, learn from it, and give you the result from unseen data later.

How to Find Highest Repeating Word from a File in Java [Word Count Solution]

Hello guys, if you are looking for a Java program to print the word and their count from a given file then you have come to the right place. Earlier, I have shared 100+ Data Strucutre and Algorithms Problems from interviews and in this article, I will show you how to find worlds and their count from a given file in Java. How to find the word and their count from a text file is another frequently asked coding question from Java interviews. The logic to solve this problem is similar to what we have seen in how to find duplicate words in a String, where we iterate through string and store word and their count on a hash table and increment them whenever we encounter the same word. 

10 Best Udemy Courses Of Rob Percival to Learn Python, JavaScript and Tech skills

Helo guys, if you are looking for best online courses by Rob Percvial, one of the Udemy's top instructor to learn web development, Python, JavaScript, and Node.js then you have come to the right place. In the past, I have shared best online courses by Jose Portilla, Stephen GriderMaximillian SchwarzMuller, Stephane Maarek and Brad Traversy and in this article, I am going to share best online course by Ro Percival, one of the top Udemy instructor and my favorite. But, before we start with the 10 best Udemy courses from Rob Percival, let me tell you who Rob is.