• Object Class

    Object Class with toArray Method

    Object class is super class of all system define classes like Integer, Double, Float, String and many more. Object classes can store any types of data and then use easily. In this blog, we will see how to store Integer object data store in Object array using toArray() method.   Let’s see Example on Object […]

  • ArrayList Class

    ArrayList Class Simple Example

    In our last blog, we show how to use ArrayList class in java program. In this blog we will see simple ArrayList class example with Employee. How to add Employee class’s object into ArrayList. How to display Employee data using ArrayList using foreach concepts.   Let’s see Example on ArrayList Class   import java.util.*; class […]

  • java collection

    Java Collection: ArrayList

    ArrayList is one java collection class. We can store any type of object data in ArrayList. In this blog, we will see how to store Integer data in ArrayList Class, display ArrayList and use of ArrayList object data.   How to declare ArrayList Class? ArrayList<Generics> object = new ArrayList<Generics>(); Example: ArrayList<Integer> list1 = new ArrayList<Integer>(); […]

  • Java Collection Classes

    Java collection is most important part in java language. In this blog we will see list of java collection classes. We also add java collection java programs and theory files.   List of Java Collection Classes List ArrayList LinkedList Set LinkedHashSet HashSet TreeSet Map LinkedHashMap HashMap TreeMap Table Hashtable Other Classes Enumeration Iterator Object   […]

  • java generics

    Java Generics : Method And Constructor

    What is Java Generics? Java Generics are very useful in java program language, using generics we can customize our code and reduce size of program.   We can use same constructor and method for different types of wrapper class and data types. For better understand we will see video and example on java generics. In […]

  • Auto Boxing And Un-Boxing

    What is Auto Boxing? Two type of Auto Boxing available in Java [Store value in Wrapper Class] Integer a1 = new Integer(50); Integer a2 = 60;     What is Auto-UnBoxing? One type of Auto-UnBoxing available in Java [Store value in primitive data types using Wrapper Class] Integer a1 = new Integer(50); int x = […]

  • enum example

    Enum Example : Derive Class And Data

    What is enum in java program? Java language has many data types like primary data types, derive data types, user define data types. Enum is one derive data types in java language. Enum is also derive class, we can create derive class object and store multiple values in that derive object.   Let’s see enum […]