Tuesday , November 21 2017

Recent Posts

June, 2015

  • 16 June

    Java WeakHashMap class Example

    In this tutorials, we are going to discuss a most important WeakHashMap class in collection framework and it is also very important for interview. Java WeakHashMap : The Java WeekHAshMap is one of the implementation class of the Map interface. It stores week  references are keys. If you don’t know …

    Read More »
  • 11 June

    Java LinkedList class Example

    The Java LinkedList class is a generic class that provides a linked-list data structure for storing and managing elements. This class implements the List, Queue, and DeQueue interfaces. Java LinkedList : Some of the key features of the LinkedList class include: The constructors for Java LinkedList instances are: LinkedList():Creates an …

    Read More »
  • 11 June

    ArrayList in Java

    In this tutorials, we are going to discuss what is ArrayList in Java and how to work with ArrayList. Java ArrayList : The ArrayList in Java is a generic class that implements the List interface. This class provides a way to create dynamic arrays. The ArrayList in Java implements all …

    Read More »
  • 10 June

    Vector in Java

    Vector is a class in Java, which is one of the implementation class of java.util.List interface like ArrayList. Vector in Java : Like ArrayList, Vector is also ordered collection. It maintains the insertion order. Vector class is mainly useful for multi threaded environment, since all methods implemented in Vector class …

    Read More »
  • 3 June

    Java 8 Stream API and Parallelism

    Stream API and Parallelism The Stream API is a new feature in Java 8 that provides advanced capabilities to manipulate large collections of data. It is one of the most significant new features in Java 8 because of its ability to support sophisticated operations and execute parallel tasks. By using …

    Read More »
  • 1 June

    Factory Method Pattern in Java

    Factory Method Pattern is one of the most commonly used pattern in Java and C# languages. The pattern is comes under creational design pattern from the GoF (Gang Of Four) Book. In Factory Pattern Objects will be created without exposing the creation logic and refers the new created objects to a …

    Read More »

May, 2015

  • 29 May

    Difference between b++ and b=b+1

    In this tutorial, we are going to learn an important Java interview question i.e what is the difference between b++ and b=b+1 ? b++ and b=b+1 : If we see at a glance, the b++ and b=b+1 both generating the same output. But in terms of evaluation of expression it …

    Read More »
  • 28 May

    Lambda Expressions in Java

    Java 8 Feature – Lambda Expressions Lambda expression is a significant new feature in Java 8 that enables developers to use functional programming features in Java code. The introduction of lambda expressions and related features in Java 8 has led to the addition of new syntax elements and constructs to …

    Read More »
  • 27 May

    Difference between Path vs Classpath in Java

    In this tutorial, we are going to understand Path vs ClassPath in Java. Java Path : Path represents the location, where required java binary executables are available. Setting path : By passing the above command on command prompt, we can set the path for java. If we do not set …

    Read More »
  • 27 May

    What is a Jar File in Java

    In this tutorials, we are going to learn about what is a jar file and how to create and extract. Jar File : A jar file represents a group of .class files. In Java if we need to work with several dependent classes it is not recommended to set class …

    Read More »
  • 27 May

    Difference between HashSet vs TreeSet in Java

    In this tutorials, we are going to understand what is the differences between HashSet vs TreeSet in Java. HashSet vs TreeSet : Both HashSet and TreeSet are implemented classes of Set interface. Though these two are implementations of Set interface we can see some significant differences between HashSet and TreeSet. …

    Read More »
  • 23 May

    Types Of Inheritance in Java

    Inheritance is the key feature for the Object Oriented Programming as there is class to inherit the property allocated. Inheritance in Java occurs when the single class extends with another class then it inherits the non-private members. This includes the fields and methods that is made in the process. The …

    Read More »
  • 21 May

    == Versus .equals() in Java

    Frequently in Java code we come across the usage of == and equals(). The question arises whether == and equals() perform the same operations or whether they work differently. To answer this question, let us examine how == and equals() work and then identify their differences. The == operator: The …

    Read More »
  • 20 May

    Oops Concepts In Java

    Oops Concepts Object Oriented Programming is the paradigm or methodology that is used for designing the program using its objects or classes. Generally the object is the real word things like chair, pen, table or any other. Oops concepts generally simplifies the development of software and maintain the concepts in …

    Read More »
  • 18 May

    LinkedHashSet in Java

    In the previous tutorials we have discuss about what is HashSet and Tree Set with customizable sorting. Now we are going to discuss about LinkedHashSet. What is LinkedHashSet ? LinkedHashSet is child class of HashSet, which was introduced at Java 1.4 Version. The underlying data structure is the combination of …

    Read More »