Saturday, May 27, 2023

What is difference between HashMap and Hashtable in Java?

HashMap vs Hashtable in Java
Though both Hashtable and HashMap are data-structure based upon hashing and implementation of Map interface, the main difference between them is that HashMap is not thread-safe but Hashtable is thread-safe. This means you cannot use HashMap in a multi-threaded Java application without external synchronization. Another difference is HashMap allows one null key and null values but Hashtable doesn't allow null key or values. Also, the thread-safety of the hash table is achieved using internal synchronization, which makes it slower than HashMap.

Difference between List and Set in Java Collection? Example

What is the difference between List and Set in Java is a very popular Java collection interview question and an important fundamental concept to remember while using the Collections class in Java. Both List and Set are two of the most important Collection classes Java Program use along with various Map implementations. The basic feature of List and Set are abstracted in the List and Set interface in Java and then various implementations of List and Set adds specific features on top of that e.g. ArrayList in Java is a List implementation backed by Array while LinkedList is another List implementation that works like linked list data-structure.

Friday, May 26, 2023

Top 10 Online Courses to Learn Web 3 in 2024 - Best of Lot

Hello guys, if you want to learn Web3 technology and looking for best online resources like online courses and tutorial then you have come to the right place. Earlier, I have shared 10 free Web3 tutorials and in this article, I am going to share 10 best online courses to learn Web3 in 2024. But, before getting to the 10 best courses that you can use to learn more about Web3, let me tell you more about what it really is.  Web3 is basically used to refer to a new kind of internet service that can be built using decentralized blockchains. These blockchains can be seen as shared ledger systems that can be used by cryptocurrencies like Ethereum and Bitcoin.

Top 5 Courses For ISTQBA Certified Tester in 2024 - Best of Lot

Hello guys, if you want to become a ISTQBA certified Tester and looking for best online resources like online courses then you have come to the right place. In this article, I am going to share 5 best online courses for ISTQBA certification. But, before we get to the 5 best courses that will teach you everything you need to pass the ISTQB certification, let me tell you a little bit more about what it really is. ISTQB stands for International Software Testing Qualifications Board. It is basically an institution that offers internationally recognized certifications. These certifications are called 'ISTQB Certified Tester'.

Top 5 courses to learn Solr in 2024 - Best of Lot

Hello guys, if you want to learn Solr and looking for best resources like online courses then you have come to the right place. Solr is a search platform that is open-source and may be used to create search apps. It was constructed on top of Lucene (full text search engine). Solr is an enterprise-ready, fast, and scalable search engine. Solr-based apps are smart and provide excellent performance.  Hadoop and Solr may work together. Solr assists us in discovering the essential information from such a vast source since Hadoop manages a large volume of data. Solr may be used for more than just searching. It can also be used to store data. It is a non-relational data storage and processing technique, like other NoSQL databases. In a nutshell, Solr is a scalable, ready-to-use search/storage engine that is geared for searching massive amounts of text-based data.

Difference between Wait and Sleep, Yield in Java? Example

The difference between wait and sleep or the difference between sleep and yield in Java is one of the popular core Java interview questions and asked on multi-threading interviews. Out of three methods that can be used to pause a thread in Java, sleep() and yield() methods are defined in thread class while wait() is defined in the Object class, which is another interview question. The key difference between wait() and sleep() is that the former is used for inter-thread communication while later is used to introduced to pause the current thread for a short duration. This difference is more obvious from the fact that, when a thread calls the wait() method, it releases the monitor or lock it was holding on that object, but when a thread calls the sleep() method, it never releases the monitor even if it is holding. 

What is Timer and TimerTask in Java – Tutorial Example

Timer in Java is a utility class that is used to schedule tasks for both one time and repeated execution. Timer is similar to the alarm facility many people use in mobile phones. Just like you can have one time alarm or repeated alarm, You can use java.util.Timer to schedule a time task or repeated task. In fact, we can implement a Reminder utility using Timer in Java and that's what we are going to see in this example of Timer in Java. Two classes java.util.Timer and java.util.TimerTask is used to schedule jobs in Java and forms Timer API. The TimerTask is an actual task that is executed by Timer. Similar to Thread in JavaTimerTask also implements the Runnable interface and overrides run method to specify a task details. 

Difference between Thread vs Runnable interface in Java

Thread vs Runnable in Java is always been a confusing decision for beginnerin java. Thread in Java seems easy in comparison to Runnable because you just deal with one class java.lang.Thread while in case of using Runnable to implement Thread you need to deal with both Thread and Runnable two classes. though the decision of using Runnable or Thread should be taken considering differences between Runnable and Thread and the pros and cons of both approaches.

What is Daemon thread in Java and Difference to Non daemon thread - Tutorial Example

Daemon thread in Java is those thread that runs in the background and is mostly created by JVM for performing background tasks like Garbage collection and other housekeeping tasks. The difference between Daemon and Non-Daemon (User Threads)  is also an interesting multi-threading interview question, which is asked mostly on fresher level java interviews. In one line main difference between daemon thread and user thread is that as soon as all user threads finish execution java program or JVM terminates itself, JVM doesn't wait for daemon thread to finish their execution.

4 Reasons and Benefits of Using Multithreading in Java? Why Threads?

In one word, we use Threads to make Java applications faster by doing multiple things at the same time. In technical terms, Thread helps you to achieve parallelism in Java programs. Since CPU is very fast and nowadays it even contains multiple cores, just one thread is not able to take advantage of all the cores, which means your costly hardware will remain idle for most of the time. By using multiple threads, you can take full advantage of multiple cores by serving more clients and serving them faster. Since, in today's fast-paced world, response time matters a lot and that's why you have multi-core CPUs, but if your application doesn't make full use of all resources then there is no point adding them, multi-threading is one way to exploiting huge computing power of CPU in Java application.

How to use Fork Join in Java Multithreading - Tutorial with Example

What is fork Join framework in Java: Already popular project coin of JDK7 release has presented a lot of good features e.g automatic resource management, string in switch case, better exception handling in JDK7, etc. Another important feature to note is fork-join as the name implies it divides one task into several small tasks as a new fork means child and joins all the forks when all the sub-tasks are complete. 

Difference between Process and Thread in Java - Example

One of the common questions from programming interviews is, what is the difference between a Thread and a Process? Well, the main difference between them is that a Process is a program that is executing some code and a thread is an independent path of execution in the process. A process can have more than one thread for doing independent tasks e.g. a thread for reading data from disk, a thread for processing that data, and another thread for sending that data over the network. This technique to improve throughput and better utilize CPU power is also known as multi-threading.

How to use Exchanger for Inter thread communication in Java? Example Tutorial

Hello guys, if you are working in a concurrent Java application then you might have heard about the Exchanger class of java.util.concurrent package. The Exchanger in Java is another concurrency or synchronization utility introduced in Java 1.5 along with CountDownLatch, CyclicBarrier, and Semaphores. As the name suggests, the Exchanger allows two Threads to meet and exchange data at the rendezvous or meeting point. This means you can use Exchanger to share objects between threads and for inter-thread communication. The java.util.Exchanger is a parametric class, which defines and holds the type of object to be exchanged. It has an overloaded method called the exchange(), which is used to exchange objects between threads.

What is Phaser in Java? When and How to use Phaser? Example Tutorial

Hello guys, if you want to know what is Phaser and when and how to use Phaser in Java then you have come to the right place. Phaser in Java is a synchronization mechanism introduced in Java 7 that allows threads to wait for a certain phase or a set of phases to complete before proceeding further. It is a reusable barrier that allows threads to synchronize and wait for other threads to reach a certain phase before moving ahead. In the past, I have shared the best Concurrency courses and books and also wrote tutorials about popular Java concurrency utility classes like CyclicBarrierCountDownLatchBlockingQueueForkJoinPool, and recently CompletableFuture in this article, you will learn about Phaser, another useful concurrency utility for Java programmers. 

Thursday, May 25, 2023

5 Best Courses for AWS Certified DevOps Engineer - Professional

Let us start with the basic stuff. Because before you learn anything else, you need to know what the AWS Certified DevOps Engineer - Professional certification really is. It is actually a certification that allows businesses to identify and develop talent with critical skills for implementing cloud initiatives. If you earn an AWS Certified DevOps Engineer - Professional certification, it means that you have the ability to automate the testing and deployment of AWS infrastructure and applications.
The AWS Certified DevOps Engineer - Professional certification is meant for individuals with two or more years of experience provisioning, operating, and managing AWS environments. It is recommended that you have some experience developing code in at least one high-level programming language. You should be able to build highly automated infrastructures and administer operating systems.

5 Best SAP Hana Courses to Take in 2024

Hello guys, SAP Business Suite 4 SAP HANA is the acronym for SAP Business Suite 4 SAP HANA. Similar to the shift from SAP R/2 to SAP R/3, it ushers in the next significant wave of innovation for SAP clients. SAP HANA (High-performance Analytic Appliance) is a multi-model database that keeps data in memory rather than on disc. This allows for far quicker data processing than traditional disk-based data systems, allowing for sophisticated, real-time analytics. SAP ECC, often known as SAP ERP, is SAP Business Suite's fundamental ERP software. SAP ECC can operate on Oracle, however S/4HANA can only run on HANA. As a result, some businesses will most likely have to change their business practices.

Difference between final, finally and finalize method in Java

What is the difference between the final, finally, and finalize method is asked to my friend in a Java interview with one of the US-based Investment banks. Though it was just a telephonic round interview, he was asked a couple of good questions e.g. how to avoid deadlock in Java, How to get() method of HashMap works, and one of the puzzles which are based on recursion. In short final keyword can be used along with variable, method, and class and has a different meaning for all of them. finally is another Java keyword is used in Exception handling along with try, catch, throw, and throws. finalize() is a special method in Java that is called by Garbage Collector before reclaiming GC eligible objects.

Difference between private, protected, public and package modifier or keyword in Java

private vs public vs protected vs package in Java
Java has four access modifiers namely private, protected, and public. package level access is the default access level provided by Java if no access modifier is specified. These access modifiers are used to restrict the accessibility of a class, method, or variable on which it applies. We will start from the private access modifier which is the most restrictive access modifier and then go towards the public which is the least restrictive access modifier, along the way we will see some best practices while using access modifier in Java and some examples of using private and protected keywords.

Difference between ArrayList and Vector in Java

ArrayList and Vector are two of the most used classes on the java collection package and the difference between Vector and ArrayList is one of the most frequently asked java interview questions on first-round or phone interviews. Though it’s quite a simple question in my opinion but knowledge of when to use Vector over ArrayList or does matter if you are working on a project. In this article, we will some point-based differences between Vector and ArrayList in Java and trying to understand the concept behind those differences. 

Difference between TreeSet, LinkedHashSet and HashSet in Java with Example

TreeSet, LinkedHashSet, and HashSet all are implementation of the Set interface and by virtue of that, they follow the contract of Set interface i.e. they do not allow duplicate elements. Despite being from the same type of hierarchy,  there are a lot of differences between them; which is important to understand, so that you can choose the most appropriate Set implementation based upon your requirement. By the way difference between TreeSet and HashSet or LinkedHashSet is also one of the popular Java Collection interview questions, not as popular as Hashtable vs HashMap or ArrayList vs Vector but still appears in various Java interviews.

Difference between static vs non static method in Java - Example

In this article, we will take a look at the difference between the static and non-static methods in Java, one of the frequently asked doubts from Java beginners. In fact, understanding static keyword itself is one of the main programming fundamentals, thankfully it's well defined in the Java programming language. A static method in Java belongs to the class, which means you can call that method by using class name e.g. Arrays.equals(), you don't need to create an object to access this method, which is what you need to do to access non-static method of a class.

Difference between Class and Object in Java and OOP with Example

Class and Object are the two most important concepts of Object-oriented programming language (OOPS)  e.g. Java. The main difference between a Class and an Object in Java is that class is a blueprint to create different objects of the same type. This may look simple to many of you but if you are a beginner or just heard the term Object Oriented Programming language might not be that simple. I have met many students, beginners, and programmers who don’t know the difference between class and object and often used them interchangeably.

Difference between Abstract Class vs Interface in Java

When to use interface and abstract class is one of the most popular object-oriented design questions and is almost always asked in Java, C#, and C++ interviews. In this article, we will mostly talk in the context of the Java programming language, but it equally applies to other languages as well. The question usually starts with a difference between abstract class and interface in Java, which is rather easy to answer, especially if you are familiar with the syntax of the Java interface and abstract class. Things start getting difficult when the interviewer asks about when to use abstract class and interface in Java, which is mostly based upon a solid understanding of popular OOPS concepts like Polymorphism, Encapsulation, Abstraction, Inheritance, and Composition

Difference between valueOf and parseInt method in Java? Example

Both valueOf and parseInt methods are used to convert String to Integer in Java, but there is subtle differences between them. If you look at the code of valueOf() method, you will find that internally it calls parseInt() method to convert String to Integer, but it also maintains a pool of Integers from -128 to 127 and if the requested integer is in the pool, it returns an object from the pool. This means two integer objects returned using the valueOf() method can be the same by the equality operator. This caching of Immutable object, does help in reducing garbage and help garbage collectors. 

What is difference between java.sql.Time, java.sql.Timestamp and java.sql.Date - JDBC interview Question

Difference between java.sql.Time, java.sql.Timestamp and java.sql.Date  is the most common JDBC question appearing on many core Java interviews. As JDBC provides three classes java.sql.Date, java.sql.Time and java.sql.Timestamp to represent date and time and you already have java.util.Date which can represent both date and time, this question poses a lot of confusion among Java programmer and that’s why this is one of those tricky Java questions are tough to answer. It becomes really tough if the differences between them are not understood correctly.

What happens when you call instead of Thread.start() in Java? Trick Interview Question

Hello guys, writing multi-threaded and concurrent programs is not easy, not even in Java.  Even senior developers, including myself, make mistakes while writing concurrent Java applications. This is also one of the trickiest areas of Java programming language, where misconceptions outnumber concepts. Considering the amount of misconception an average Java programmer has about multi-threading and concurrency, I thought to start a new series about common multi-threading mistakes done by Java programmers; what is a better way to learn from common real word mistakes.

Wednesday, May 24, 2023

Review - Is Introduction To Programming the Internet of Things (IoT) Specialization on Coursera worth it?

The internet of things or IoT in a simple word is devices (things) embedded with sensors, software, hardware that are connected and exchange data with other devices such as smart refrigerators, smartwatches, intelligent cameras that can detect fires using artificial intelligence, self-driving cars that can take the wheel over the human, intelligent home security system and the list is endless. This kind of devices is programmed using the language like C and C++. Still, you can also use the python language, and people with IT backgrounds are more likely to learn and understand this kind of technology. Still, I’ve found one of the best courses that can teach you IoT and how to program yourself even if you are a non-technical person. An Introduction to Program the Internet of Things (IoT) Specialization course offered from the University of California Irvine.

Coursera Review - Why Should You Take The Coursera Courses? It it worth it?

In today's rapidly evolving digital landscape, online learning has emerged as a powerful platform, offering individuals the opportunity to acquire new skills, advance their careers, and broaden their knowledge from the comfort of their own homes. Coursera, one of the leading online learning platforms, has gained significant recognition for its extensive range of courses taught by top-tier universities and industry professionals. But the question remains: Why should you take Coursera courses, and are they truly worth it? 

Top 5 Courses to learn Linear Algebra in Depth - Best of Lot

Hello guys, if you want to learn Linear Algebra in depth and looking for best resource slike tutorials and online courses then you have come to the right place. In the past, I have shared best Maths courses and best Statistics courses and in this article, I am going to share best online courses to learn Linear Algebra in depth . Linear algebra serves as a foundational pillar of mathematics and plays a crucial role in various fields, including computer science, physics, engineering, and data analysis. Its applications are vast, ranging from understanding complex systems to solving optimization problems. Whether you're a student, a professional looking to enhance your skills, or simply an avid learner intrigued by the beauty of mathematical concepts, finding the best linear algebra course can be a transformative step towards mastering this subject in depth.

How to check File Permission in Java with Example - Java IO Tutorial

Java provides several methods to check file and directory permissions. In the last couple of articles, we have seen how to create Files in java and how to read a text file in Java, and in this article, we will learn how to check whether the file is read-only, whether the file has to write permission or not, etc. In Java we know we have a file object to deal with Files if we have created any file in our application using the file object, we have the privilege to check the access permission of that file using a simple method of File class in Java. Let see what the methods are and how to use that method

How to Change File Permissions in Java – Example Tutorial

Hello guys, In the last article, we saw how to check whether an application can access the file and perform any read-write or execute an operation on that file by using the inbuilt method provided by File Object. Now we deal with some more methods of file class which will use to provide some privileges to users so that they can perform read, write, and execute operations on the particular file. There are few more methods added with the new File API in Java 7, but in this tutorial, we will only learn about traditional ways to change the permission of a file from the Java program, which should work on all versions of JDK.

Java Serialization Example - How to Serialize and Deserialize Objects in Java?Tutorial

Serialization is one of the important but confusing concepts in Java. Even experienced Java developers struggle to implement Serialization correctly. The Serialisation mechanism is provided by Java to save and restore the state of an object programmatically. Java provides two classes Serializable and Externalizable in package to facilitate this process, both are marker interfaces i.e. an interface without any methods. Serializing an Object in Java means converting it into a wire format so that you can either persist its state in a file locally or transfer it to another client via the network, hence it becomes an extremely important concept in distributed applications running across several JVMs.

SimpleDateFormat in Java is not Thread-Safe Use Carefully

SimpleDateFormat in Java is a very common class and often used to format Date to String and parse String into Date in Java, especially in pre Java 8 world, but it can cause very subtle and hard to debug issues if not used carefully because both DateFormat and SimpleDateFormat both are not thread-safe and buggy. A call to format() and parse() method mutate the state of DateFormat class and should be synchronized externally in order to avoid any issue but many Java developers are not aware of these. That's why it's better to completely avoid using SimpleDateFormat class especially if you are using Java Se 8 or higher version like Java SE 11 or Java SE 17. here are a few points which you should take care while using SimpleDateFormat in Java:

Java 8 Comparator comparing() and thenComparing() Example - Tutorial

Hello Java programmers, you may know that the JDK 8 has added a lot of new methods into the Comparator interface which makes comparing and sorting objects in Java really easy. Two such methods are called comparing() and thenComparing() which was added in the java.util.Comparator interface. These methods accept a key extractor function and return a Comparator that can compare to that key. The key must be Comparable though like String, Integer, or any Java class which implements java.lang.Comparable interface, I mean the key must implement Comparable interface. 

How to check if a File is hidden in Java? Example

This article is a quick tip to find hidden files in Java by checking the hidden properties of a File or directory from the Java Program. File Handling is a crucial topic in java already we have discussed how to create a file in java, how to create a directory, how to read write in a text file in Java, how to set permissions on the file, and some more aspects and we will discuss one more property of the file, i.e. hidden property. Now the question arises can we make a file Hidden using our java code or not.

How to create a hidden file in Java- Example Tutorial

In the last article, we saw how to check hidden files in Java and now we will see how to hide files in Java or make hidden files in Java. As we said File API in Java doesn’t provide any method to make a file hidden in Java but still you can apply some quick tricks to hide files from Java program. Like in a Unix environment any file whose names begin with a dot (.) is hidden so you can name your file starting with a dot (.)  and your File will be hidden in Linux or Unix Environment.

Top 23 Docker Container Interview Questions Answers for Developers and DevOps

Hello guys, if you are preparing for DevOps Engineer interview or a Software developer job interviews like Java developer then preparing about Docker is a good idea. Docker has become an essential tool for packaging and deploying Software, particularly Microservices, and you can expect a couple of questions about Docker during Interview to check your knowledge. Having absolutely no idea of Docker before going into interview can be detrimental to your prospect considering the importance of container on deploying apps and services on Cloud. That's why I always programmers and developers to prepare Docker interview questions and revise key Docker concepts before interview. 

Top 20 IT Support Interview Questions with Answers for 2 to 3 Years Experienced

Hello guys, if you want to start your career as IT support engineer and  preparing for IT support interview and looking for frequently asked IT support questions from interviews then you have come to the right place. Earlier, I have shared UNIX Interview Questions, SQL Interview Questions as well as Java support engineer interview questions and in this article, I am going to share common IT support questions for 3 to 5 years experienced professionals. If you have worked as IT support engineer then most likely you can answer all of these questions but if you struggle to answer them then I suggest you to first go through a comprehensive IT support course like Google's IT support Professional certification on Coursera to learn and revise key concepts required for IT support engineers. Even beginners can join this course to start their career as IT support engineers. 

Difference between Linked List and Array in Java? Example

Array and linked lists are two fundamental data structures in the programming world. Almost all programs use Array in some form or other, which makes it increasingly important to learn array and linked list. The difference between the linked list and array data structure is also a popular data structure question, frequently asked in the various programming job interviews. This makes it even more important to learn and understand the difference between an array and a linked list. Well, there are a lot of differences between these two starting from how they store data, to how you retrieve data from them.

Tuesday, May 23, 2023

Top 5 Data Science Certifications to Aim in 2024 - Best of Lot

The demand for data scientists is at the all time high. It is regarded as the most enticing job in the IT business. Companies rely on Data Scientists to extract the most value from the data they collect. If you choose to pursue this professional path, these Data Science Certifications will assist you in demonstrating your value.The numerous Data Science Certifications prepare you to work as data experts in the market. They will assist you in developing the abilities needed in the sector to solve real-world situations. These credentials are used by recruiters to verify your abilities and expertise. Having some of these credentials can greatly assist you in your quest to become a Data Scientist. In this lesson, we'll look at the best certification programs, what they have to offer, and some other facts.

Why Should You Take Udemy Courses? Is Udemy Courses worth it?

In today's rapidly evolving world, continuous learning and upskilling have become essential for personal and professional growth. As traditional educational models face challenges in keeping pace with emerging technologies and industry demands, online learning platforms have emerged as valuable resources for individuals seeking knowledge and skills. Among these platforms, Udemy has gained significant popularity, offering a vast array of courses across various disciplines. However, with numerous online learning options available, it's natural to wonder: Why should you take Udemy courses? Are they truly worth the investment of time and money? Online courses are almost mandatory to learn new skills even if you have a college degree or are a professional worker since this modern always needs you to upgrade yourself to learn new skills, and one of the great platforms for this purpose is called udemy.

Top 5 Courses for DP-300 Administering Relational Databases on Microsoft Azure in 2024

Hello guys, if you are preparing for DP-300 or Exam DP-300: Administering Relational Databases on Microsoft Azure and looking for best resources like online courses and practice test then you have come to the right place. The Azure database administrator implements and oversees the operational parts of Azure Data Services and SQL Server-based cloud-native and hybrid data platform solutions. To accomplish day-to-day operations, the Azure database administrator use a range of methodologies and tools, including T-SQL skills for administrative administration.  This position is in charge of managing, securing, and optimising contemporary relational database solutions in terms of availability, security, and performance. To handle operational elements of data platform solutions, this position collaborates with the Azure data engineer function.  

How to merge two sorted arrays in Java? Example Tutorial

Hello guys, if you want to learn how to merge two sorted arrays in Java then you have come to the right place. Earlier, I have shown you how to sort arrays in Javaand in this article, I will show you how to merge two sorted arrays in Java. Btw, if you are a complete beginner then Firstly, you need to know what an array is before going about solving this problem about sorted array.  An array is a data structure in Java that holds values of the same type with its length specified right from creation time. This means you can create an integer array like int[] to store integer value. Think of a container, like a crate of eggs or coke, where number of places are fixed and you cannot change once you created it.

How to implement Strategy Design Pattern in Java? (with Real World Example, Pros and Cons)

Strategy Design pattern is one of most useful versatile pattern, you will often see used in Object Oriented design. This pattern is one of the behavioral pattern mentioned by famous Gang of Four in there design pattern classics Elements of Reusable Design Pattern is Software development. As per definition goes, Strategy pattern allows you to encapsulate a set of algorithms and make them interchangeable. The best thing about Strategy pattern is that it allows you to pass a dynamic code to a method much like Lambda expression. In fact, it was one of the way to achieve same effect prior to Java 8. Also, there are multiple example of Strategy Pattern in JDK itself like Comparator and Comparable are the best example of Strategy Pattern in Java. 

Java 8 Predicate Functional Interface Example [Tutorial]

In Java 8, there is a defined functional interface which is called Predicate. The Predicate interface receives an argument and based on specific condition it returns Boolean value. It can be helpful in testing and it’s located in java.util.Function package. This is one of the many pre-defined or built-in functional interface which JDK provides. A couple of important ones are Supplier which can be used to produce a value of T (any object) and Consumer which can consume and project like takes data and print to console. forEach() is a good example of method accepting Consumer interface. Similarly many method accept a Predicate and when they do you can simply pass a lambda which generates a boolean by checking a condition. 

5 Ways to convert int to String in Java - Example Tutorial

If you have an int variable and wants to convert that into String object e.g. 1 to "1" or 10 to "10" then you have come to right place. In the past I have show explained Enum to Stringhow to convert String to float, String to double, String to int , and String to boolean and in this article, I will show you how to convert an int to String in Java. And, not one or two but I will show you 4 different ways to convert an int to String in Java, from easy to difficult and from common to unknown. Even though it's good to know multiple ways to solve a problem e.g. to perform this conversion, I will also suggest you what is the best way to convert int to String and why?

Difference between @Autowired and @Qualifier Annotation in Spring Framework? Example Tutorial

Hello Java programmers, the difference between @Autowired and @Qualifier annotations in Spring is a common question frequently asked in Spring on Java interviews, and if you are looking for an answer then you have come to the right place. Earlier, I have shared the best Spring courses and books, and in this article, Since most Java developers are familiar with annotations in Spring, they need to understand the difference between them and where to use them. Autowiring is a Spring Framework feature that enables you to inject the object dependency implicitly. This was added to Spring 2.5 to make an annotations-driven dependency injection that helps to "injects" objects into other objects or "dependencies." 

How to do Pagination in Oracle Database - SQL Query With Example

Many times we need an SQL query that returns data page by page i.e. 30 or 40 records at a time, which can be specified as the page size. In fact, Database pagination is a common requirement of Java web developers, especially dealing with the largest data sets.  In this article, we will see how to query Oracle 10g database for pagination or how to retrieve data using paging from Oracle. Many Java programmer also uses display tag for paging in JSP which supports both internal and external paging. In the case of internal paging, all data is loaded into memory in one shot and the display tag handles pagination based upon page size but it is only suitable for small data where you can afford those many objects in memory.

How to Remove Leading/Trailing White Space from a String in SQL Server? LTRIM, RTRIM Example

Unlike Java, Microsoft SQL Server 2008, 2012, 2014,  and even the latest version don't have a built-in trim() function, which can remove both leading and trailing space from the given String. But, SQL Server does have two built-in functions LTRIM() and RTRIM() to remove leading and trailing space. The LTRIM() function removes space from the left side of String so you can use it to get rid of leading space, while RTRIM() removes white-space from the right side of String so you can use it to delete trailing space. You can even combine these two methods to create your own TRIM() method in SQL SERVER e.g. LTRIM(RTRIM(column)) will act as a TRIM() method because it removes both leading and trailing space.

Top 12 SQL Queries Practice Questions for Coding Interviews

Hello guys, if you are looking for SQL query examples from interviews or SQL Query Practice questions to improve your SQL skill then you have come to the right place. Earlier, I have shared best websites to learn SQL and Practice Query online and in this article, I am going to share 12 popular SQL query examples from interviews. You can also practice them to test your SQL skills before your technical Interview. If you don't know SQL, a short form of Structured Query Language is one of the essential skills in today's programming world. No matter whether you are a Java developer, C++ developer or Python developer, you must know how to write SQL queries. Every programming job interview has at least one or two questions that require you to write SQL queries for a given requirement and many developers struggle there. 

Top 30 Examples of MySQL Commands in Linux and UNIX

Hello guys, if you are working with MySQL database in Linux and looking for MySQL commands to perform common tasks like starting and stopping a MySQL server then you have come to the right place. I have been working with MySQL since last 15 years as Java developer and it was actually the first database I used in a real-world project. Since I need to work with the MySQL database daily, I compiled a list of MySQL commands which I keep handy. This saves me a lot of time while doing development and support and that's what I am going to share with you today. 

Difference between Truncate and Delete in SQL? Example

Truncate and delete in SQL are two commands which are used to remove or delete data from a table. Though quite basic in nature both SQL commands can create a lot of trouble until you are familiar with details before using it. The difference between Truncate and delete are not just important to understand perspective but also a very popular SQL interview topic which in my opinion a definite worthy topic. What makes them tricky is the amount of data. Since most Electronic trading system stores, large amounts of transactional data, and some even maintain historical data, a good understanding of delete and the truncate command is required to effectively work in that environment.

Monday, May 22, 2023

FutureLearn vs. edX vs. Udacity Review - Which one is better to learn Tech skills?

Online education grows year after year, and thousands of new online courses are added every month. The majority of people still in the 21st century think that the only way to learn new skills or get a deep understanding of a particular topic like IT is to attend a university and spend your valuable money & time learning something new that can get you a job.  The competition for online education is high, and there are a lot of platforms to choose from. Still, if you tend to learn more about the information technology industry, I recommend choosing one of the best platforms, which are futurelearn, edx, and udacity.

Top 5 Online Courses to learn Camunda BPM in 2024 - Best of Lot

Camunda Platform is a workflow and decision-making automation platform that is open-source. Camunda Platform includes tools for constructing workflow and decision models, as well as for running deployed models in production and allowing users to complete workflow tasks. [2] It's written in Java and distributed under the Apache License as open-source software. Camunda is headquartered in Berlin and has offices in San Francisco and Denver, Colorado. It includes a BPMN-compliant workflow engine and a Decision Model and Notation (DMN)-compliant decision engine, both of which may be integrated in Java applications and communicate with other languages over REST.

Top 5 Courses For Six Sigma Yellow Belt Exam in 2024 - Best of Lot

The Yellow Belt is, without doubt, one of the most valuable courses that you can take in Six Sigma certification. But what exactly is the Yellow Belt? The question is a bit difficult to answer, simply because it means different things to different people. For example, it can help you open up new doors in your career as well as expand your understanding of the industry. It can also give you opportunities to be a part of unique projects as well as perform dynamic data analysis. If you are an absolute beginner in this space, I cannot recommend enough the Yellow Belt certification. It acts as the foundation for all the other belts. A Yellow Belt is the perfect place to begin.

Difference between Clustered Index and Non Clustered Index in SQL - Example

In the SQL Server database, there are mainly two types of indexes, Clustered index, and the Non-Clustered index and difference between Clustered and Non-Clustered index are very important from an SQL performance perspective. It is also one of the most common SQL Interview questions, similar to the difference between truncate and delete,  primary key or unique key, or correlated vs non-correlated subquery. For those, who are not aware of the benefits of Index or why we use an index in the database, they help in making your SELECT query faster. 

Difference between Primary key vs Foreign key in table – SQL Tutorial Example

The main difference between the Primary key and the Foreign key in a table is that it’s the same column that behaves as the primary key in the parent table and as a foreign key in a child table. For example in the Customer and Order relationship, customer_id is the primary key in the Customer table but a foreign key in the Order table. By the way, what is a foreign key in a table and the difference between Primary and Foreign key are some of the popular SQL interview questions, much like truncate vs delete in SQL or difference between correlated and noncorrelated subqueryWe have been learning key SQL concepts along with these frequently asked SQL questions and in this SQL tutorial, we will discuss what is a foreign key in SQL and the purpose of the foreign key in any table. 

Database Website to Run and Practice SQL Query Online for FREE - SQLFiddle

Another day, I was looking for a website to execute SQL query online, since I have uninstalled Microsoft SQL Server because of memory and CPU constraint and I don't want to install it again, just for executing another query. Also, installing database is pain, it takes time and eats up lots of resources e.g. RAM memory, CPU, etc; Given so many databases to work with e.g. Oracle, MySQL, Sybase, PostgreSQL, and SQLLite, it's not really possible to have all of them in your poor laptop. Fortunately, my search leads me to this wonderful site called SQLFiddle, this is what exactly I wanted. This site offers support for a lot of popular databases, allows you to build your database schema online, and execute SQL query on the fly.

What is Referential Integrity in Database or SQL - MySQL Example Tutorial

Referential Integrity is a set of constraints applied to foreign keys which prevents entering a row in the child table (where you have the foreign key) for which you don't have any corresponding row in the parent table i.e. entering NULL or invalid foreign keys. Referential Integrity prevents your table from having incorrect or incomplete relationships e.g. If you have two tables Order and Customer where Customer is parent table with primary key customer_id and Order is child table with foreign key customer_id. Since as per business rules you can not have an Order without a Customer and this business rule can be implemented using referential integrity in SQL on a relational database.

Difference between SQL, T-SQL and PL/SQL?

Hello guys, if you are preparing for SQL and Database Interviews or any Software engineering interview and looking for difference between T-SQL, SQL, and PL/SQL then you have come to the right place. Earlier, I have shared 50 SQL Interview questions and 12 SQL query Examples from interviews and today, we are going to see another common and interesting SQL interview question, what is the difference between SQL, T-SQL, and PL/SQL? It is also one of the most common doubts among SQL beginners. It's common for programmers to think that why there are many types of SQL languages, why not just single SQL across DB? etc. Well, let's first understand the difference between SQL, T-SQL, and PL/SQL, and then we will understand the need for these dialects. 

Difference between IsNull and Coalesce in Microsoft SQL Server (with Examples)

Even though both ISNULL and COALESCE is used to provide default values for NULLs there are some key differences between them like ISNULL() is a T-SQL or Microsoft SQL Server-specific function or operator, and datatype and length of the result depends upon a parameter, but COALESCE is a SQL ANSI standard, it can accept more than one parameter and unlike ISNULL, the result doesn't directly depend upon a parameter, it is always the type and length of the value returned. Also, what is the difference between COALESCE and ISNULL is one of the frequently asked Microsoft SQL Server interview questions, and knowing these differences can help in both your day-to-day SQL development works and during job interviews.

Difference between close and deallocate cursor in SQL

Cursor in a database is used to retrieve data from the result set, mostly one row at a time. You can use Cursor to update records and perform an operation a row by row. Given its importance on SQL and Stored procedures, Cursor is also very popular in SQL interviews. One of the popular SQL questions on Cursor is close vs deallocate. Since both of them sounds to close the cursor, once the job is done, What is the real difference between close and deallocate of Cursor in SQL? Well, there is some subtle difference e.g. closing a cursor doesn't change its definition. In Sybase particular, you can reopen a closed cursor and when you reopen it, it creates a new cursor based upon the same SELECT query.

3 Ways to Remove Duplicates from a table in SQL - Query Example

There are a couple of ways to remove duplicate rows from a table in SQL e.g. you can use temp tables or a window function like row_number() to generate artificial ranking and remove the duplicates. By using a temp table, you can first copy all unique records into a temp table and then delete all data from the original table and then copy unique records again to the original table. This way, all duplicate rows will be removed, but with large tables, this solution will require additional space of the same magnitude as the original table. The second approach doesn't require extra space as it removes duplicate rows directly from the table. It uses a ranking function like row_number() to assign a row number to each row.

Top 25 DevOps Interview Questions and Answers for Experienced Developers

Hello guys, if you re preparing for DevOps Engineer interviews and looking for frequently asked DevOps Interview questions then you have come to the right place. Earlier, I have shared the DevOps RoadMapbest DevOps Courses, and DevOps books and in this article, I will share the frequently asked DevOps Interview Questions and their Answers. But, before we get to the most frequently asked DevOps interview questions, let me tell you what DevOps actually is. DevOps is basically a way of thinking or a collective approach to all the tasks that a company's application development and IT operation teams perform but it has taken the IT software development world by storm.

How to use useDispatch and useSelector? React Hooks Example Tutorial

Hello guys, if you are learning about React hooks and wondering how to use useDispatch and useSelector hooks in React application then you have come to the right place. Earlier,, I have shared the best React courseswebsites, and books and in this article, I am going to show you how React hooks make coding and statement management easier than it was before. The introduction of React hooks changed a lot in the react application development. Developers moved from complicated and length class-based components to simpler functional components that can do the same work in fewer lines of code. 

Sunday, May 21, 2023

Top 5 Websites to Learn Perl Programming and Scripting in 2024 - Best of Lot

Hello and welcome to this comprehensive and important article that has provided you with all the information you need concerning the best websites to learn Perl (Practical Extraction and Reporting Language). Perl is a programming language that was created by Larry Wall on February 1st 1988. This programming language is considered as an easy language to learn and therefore you should have no worries whatsoever. In this article, I have sampled not just websites and courses but the best ones which will lead you to the right destination as far as acquiring knowledge is concerned. No one wants poor services and am sure you also don’t need poor websites. If you seriously want to learn Perl, all the websites and courses I have listed below should be where you run to.

Top 5 Courses To Learn Salesforce Apex Programming Language in 2024 - Best of Lot

Before I get to the 5 best courses that will teach you all about the Salesforce Apex programming language, let me tell you a little more about this language. Apex is basically an object-oriented programming language that has been developed by Salesforce. The main aim of creating this language is to provide Software as a Service and Customer Relationship Management. Apex is a language that allows developers to create third-party Software as a Service application as well as add business logic to system events. Developers can do this by providing back-end database support as well as client-server interfaces.

Top 5 Courses for Six Sigma Green Belt Certification in 2024 - Best of Lot

The Green Belt is, without doubt, one of the most valuable courses that you can take in Six Sigma certification. But what exactly is the Green Belt? The question is a bit difficult to answer, simply because it means different things to different people. For example, it can help you open up new doors in your career as well as expand your understanding of the industry. It can also give you opportunities to be a part of unique projects as well as perform dynamic data analysis. If you are an absolute beginner in this space, I cannot recommend enough the Green Belt certification. It acts as the foundation for all the other belts. A Green Belt is the perfect place to begin.

Top 20 JSON Interview Questions with Answers for Beginners and Experienced Developers

Hello guys, if you are doing for a web developer interview or a Java web developer interview where you need to write server side application or backend code which uses HTTP to send and receive data then you should prepare about JSON. It's one of the most popular way to exchange data between two systems or between frontend and backend, client and server and most of the top programming language has API to create and parse JSON like Java has Jackson and JavaScript can by default support JSON because its nothing but JavaScript Object Notation.  JSON is also the default data format for REST API  and even GraphQL uses JSON to send request and receive response. 

Top 10 Free Online Tools to View and Validate JSON for Java and Web Developers

Hello guys, if you are working as Java or Web developer then you may know that JSON is one of the most popular format of exchanging data between client and server in modern web world. Almost all REST based Web services are now supporting JSON as preferred exchange format because of its competitive advantage over XML in terms of size, flexibility, and speed. With growing adoption of JSON as format to exchange data between systems, the number of tools and libraries have also increased. You will find several libraries to support JSON in various programming languages like  Jackson and Gson in Java and JSON Gems in Ruby

How to iterate over JSONObject in Java to print all key values? Example Tutorial

Hello guys, if you are wondering how to iterate over a JSONObject in Java and print all its fields and values then you have come to the right place. In this article, I will show you how you can print all data from JSONObject in Java. If you know, In json-simple library, one of the top 5 and lightweight JSON library, JSON object is a wrapper class which contains the actual JSON message. In the last article, I have explained how to parse JSON in Java using json-simple library and one question which pops up can we iterate over JSONObject properties? Well, yes, you can iterate over all JSON properties and also get the values from the JSONObject itself. In this article, I'll show you how you can print all keys and value from JSON message using JSONOjbect and Iterator.

Top 35 React.js Interview Questions Answers for Fullstack Java Developers

Hello guys, if you are preparing for React developer interviews and looking for frequently asked React.js interview questions then you have come to the right place. Earlier, I have shared the best courses, books, and websites to learn React.js and in this article, I am going to share 35 frequently asked React.js interview questions, suitable for 1 to 2 years experience developers. ReactJS is one of the most recently built open-source front-end programming languages. It came directly from Facebook's headquarter back in 2011. Earlier Recat.js was only limited to Facebook but now, it is one of the most extensively used programming languages all across the world.

What is state in React.js? useState Hook Example Tutorial

Hello guys, I have just started a new series, React for Java developers and I am going to publish React tutorials and examples to teach React.js, one of the most popular frontend libraries to Java developers. Since most full-stack Java development is happening on React and Spring Boot, it makes sense for Java developers to learn React.js. In the past, I have also shared both best React courses and books, as well as The React Developer RoadMap, which provides all the tools, libraries, and resources you need to become a proficient React Developer. 

Difference between var, let, and const in JavaScript? Example Tutorial

Hello guys, there are many ways to declare variables in JavaScript like var, let, and const and many JavaScript developer get confused when to use which keyword for declaring a variable in JavaScript. If you also have same doubt and want to understand the difference between var, let, and const in JavaScript then you have come to the right place. This is one of the popular JavaScript interview questions and frequently asked during telephonic and face-to-face round of web developer interview. Knowing the difference will not only make you answer this question better during interview but also to write better JavaScript code in your day-to-day work. Earlier, I have shared the best books and JavaScript courses for beginners and in this article, I will tell you the difference between varlet, and const and when to use them. They are three different ways to declare variables in JavaScript. 

3 Ways to Learn React.js for web development in 2024 - Best of Lot

Hello guys, if you want to learn React.js in 2024 and looking for best way to learn React.js in quick time then you have come to the right place. Earlier, I have shared React.js Developer RoadMap as well best React courses, books, websites, and React projects for you and in this article, I am going to share what is the best way to learn React.js in quick time and also in depth. But, before that, let's find out what is React.js and why every web developer should learn React.js in 2024. According to the Stack Overflow developer’s survey, React.js surpassed jQuery to become the most popular web framework in the world. Today, React is the most widely used technology for frontend development. Basically, React is a JavaScript library created and maintained by Facebook. It is used to create interactive and dynamic web components.

How to use props in React.js? Functional and Class Component + Properties Example Tutorial

Hello guys, If you have ever worked with React.js, one of the popular JavaScript library for building UI components then you definitely know what components are. A React application is made of several components and that is why components in React are defined as the building blocks of the application. In simple terms, a component is a class or function that can accept input and return a piece of code that defines a UI. Every React component can have input. These inputs are known as props. Props stand for properties and they are optional. A component works fine without props but they are one of the most useful parts of React.

React.js useState, useEffect and useDispatch Hooks Example - Tutorial

Hello guys, if you want to learn about Hooks in React.js like useState, useSelector, useEffect, and useDispatch then you have come to the right place. In the past, I have shared the best React courseswebsites, and books and in this article, I am going to show you what is React hooks and how they make coding and statement management easier in React.js. If you remember, React.js is created by Facebook and ever since it came out in 2013 and since then, it has become one of the biggest players in the front-end development community. Today, React.js demand for frontend development is more than any other framework or library. There are several reasons for its popularity. React is flexible, easy to learn, programmer-friendly, and most importantly, it's high performing. 

Student Management System Project - FullStack Java + Spring Boot + React.js Example Tutorial

Hello Java programmers, if you want to learn Spring Boot and Reactjs and looking for a full-stack Java example or a mini project then you have come to the right place. Earlier, I have shared the best Spring Boot coursesbooks, and best reactjs courses as well as many courses to learn full-stack development in Java and become a full-stack java developer. In this mini project, you will learn how to create an application that is capable of creating, deleting, updating, and retrieving functions using the Spring Boot, React, and H2 Database. In this tutorial you will create a School Classroom Application that can insert, update, delete and search students. The frontend of the application is developed using Reactjs and also the backend is developed using spring boot. And, most importantly communication between the two platforms will be done using the REST APIs. 

Saturday, May 20, 2023

Top 5 Websites to Learn C and C++ Online in 2024 - Best of Lot

Hello guys, if you want to learn C and C++ online and looking for best online resources like online courses, books, and tutorials then you've come to the right place. Earlier, I have shared both free C++ courses and paid C++ courses as well as books and in this article, I Am going to share best places to learn C++. With its expansion of the C programming language, C++ has become the most capable object-oriented programming language available today. C++ is the engine that drives the world; it is used practically everywhere for low-level tasks. Even with seemingly simple programming languages, learning to program may be a tough task for many people. C++ is one of the most often used coding languages, and there are several programming websites that may assist you in learning C++ thoroughly.

Course Review - Is Coding for Everyone: C and C++ Specialization Worth it?

Suppose you want to develop IoT devices like smart refrigerators or building an operating system like Windows or Linux, and you want a programming language to perform low-level stuff. In that case, you probably need to learn C/C++ programming languages. C++ language is the extended version of a language called C developed by Dennis M. Ritchie and used for creating applications and compilers, and more. C++ was the fourth most used programming language after Java, C, and python according to PYPL  and the best choice for banking applications and creating web browsers like Chrome & Firefox, and developing graphic applications and cloud storage systems more just to name a few.

Top 5 Websites to learn Mobile App development in 2024 - Best of Lot

Hello guys, if you want to become an App Developer in 20243 or just want to learn Mobile app development using iOS and Android and looking for best online resources to learn App development like online courses, books, tutorials, and websites then you have come to the right place. Earlier, I have shared best free App development courses and best iOS and Android courses and in this article,  I am going to share 5 best places where you can learn App development online. Everything is accessible online in the digital era, including meals, flights, and restaurants. When it comes to mobile app creation, numerous online companies provide a variety of courses to get you started with app development.  Furthermore, these online services do not just provide mobile app development courses; they also offer a variety of other online courses. 

Friday, May 19, 2023

Top 7 FutureLearn Courses to Take in 2024 - Best of Lot

Earning a degree nowadays from a university in things like programming, science, artificial intelligence isn’t enough to be ready for the market and have a job because much of what you learn in the university cant’ be applied in the real-life. Hence, you need to enhance your expertise from people who gain experience in that domain in real life, and you can do that by enrolling in an online course.
Many online platforms offer courses created by normal people like udemy, but some other platforms accept only courses created by big universities such as Coursera, edx, and futurelearn. Futurelearn is a digital platform located in the UK founded in December 2012, offering courses for free, and some of them are paid. The courses are created by top universities such as the university college London and the University of Oslo.

Top 6 Websites to Learn PHP for FREE in 2024 - Best of Lot

Hello guys, if you want to learn PHP and looking for online resources like online courses, books, and tutorials then you have come to the right place. In the past, I have shared best PHP courses and best free PHP courses and in this article, I Am going to share best websites to learn PHP in depth. Welcome dear learner and hope you will be impressed with the best websites to learn PHP that are listed here. PHP is a programming language that is generally a scripting language used in web development. It was first created in 1994 by a programmer called Rasmus Lerdorf. PHP originally stood for Personal Home Page, but currently stands for Hypertext Preprocessor. It is an easy language to learn so you should not hesitate to start learning. There are always various courses which vary from price to price so you just have to pick what suits you from the list of suitable courses listed.