Exception Handling in Java(With Examples)

Exception Handling Exception is an abnormal condition in a java program which disrupts the normal flow the program.Few examples are bad coding, wrong input data, network connectivity issue etc. Technically exception is and object that contains the exceptional details like error message and line at which issue has happened etc.When such a situation arise in … Read more

Autoboxing & Unboxing of Wrapper classes

Wrapper class, Autoboxing and Unboxing Wrapper class: In java if we want to work on various data types ,we have primitives(int, char, long etc) types available but if you want to work only with objects then wrapper classes can be helpful. Wrapper class is a class in java which is a wrapper around primitive data … Read more

Supervised vs Unsupervised Learning

Supervised vs Unsupervised Learning Explained Supervised learning: Supervised learning uses labelled datasets.Based on this labelled data, system will predict the possible outcome. We train the system by providing labelled data so that when system encounter real & unseen data, it applies the learning from labelled data basis the same, it will predict the possible outcome. … Read more

Set in Java

Set in Java Set interface is an unordered collection of elements but you can’t store duplicate values in Set.It does not maintain the insertion order.To use the set, we can use 4 classes. 1)HashSet 2)LinkedHashSet 3)EnumSet 4)TreeSet We can create the implementation object for any of above classes: HashSet: If we don’t care about the … Read more

Understanding ArrayList in Java (With Examples)

ArrayList in Java ArrayList provides the dynamic array for storing the elements. ArrayList is a class in Java collection framework.It comes under java.util package. Need for ArrayList: We use ArrayList when we need to do lot of modifications to the elements. Feature of ArrayList: 1)ArrayList is similar to Array but there is no limit on … Read more

Apache Kafka Fundamentals

Before we understand Kafka, lets discuss messaging system. A messaging system allows two applications to communicate withe each other so that dat transfer can be done.Suppose we can have a one to one messaging system between two applications but when number of applications gets increased this direct communication between each application becomes complex to maintain.Therefore … Read more

Machine Learning Models – Generative vs Discriminative

In machine learning, models can be classified in various categories.In this article we will be looking the difference between generative and discriminative models. Generative Models: Under this type of machine learning, model will be trained to generate new data set which is similar to the sample dataset given to train the model.For example if we … Read more

Generative AI – Everything You Need to Know about Generative AI

Before we understand Generative AI, let us touchbase on its evolution.Actually first we need to understand that Generative AI is nothing new but is a subset of artificial intelligence.  We can think artificial intelligence as a superset and Machine Learning & Deep learning are the subsets of AI. Generative AI is even one step down … Read more