CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

Java

Java – How to use HashMap collection?

HashMap is part of Java Collections, which has been first implemented in Java 1.2 version and has been in use since then. Java Collection Framework was introduced as a technique to store and operate on data with ease. This collection framework provides many interfaces and its implementations to operate on data with speed and efficiency […]

Getting count of objects of a class in Java!

The following article explains how to maintain reference count of objects whenever instance of a class is created. Some times it will be useful to get to know the number of instances are created for a class; this article will be useful. Step (1). Create your own class and make sure add the following private […]

How to create inner class objects in Java?

In Java, to create an object for a class we use new keyword. The new keyword creates an object of a class and initializes the object by calling it’s constructor. It is a strait forward thing to create an object for a class. But, if we have another class within the class, then how we […]

Use of CLASSPATH environment variable in Java!

CLASSPATH is the environment variable where Java compilers look for class files. Both javac & java programs will look into CLASSPATH environment variable to search for class files. For example, if your class files are located under c:\workspace folder, you need to add this folder path to CLASSPATH environment variable in-order to avoid using -cp […]

Scroll to top