This example shows how to use various Java Reflection techniques to find the Instance types while the application is running in JVM. This example creates some sample class instances at run-time and then finds its type through Reflection techniques such as class.forName, getClass etc.
1. Introduction to Application Logging Before we dig into Java LogManager and Logger, we will see why logging is required. A Java program or component running in the production system may malfunction at specific conditions. This is a program bug. When this case rises, source code debugging as we do it in the development machine … Continue reading
This Java Example shows how to create a zip file using Java’s FileSystem Object. In this example, we will pack two text files into a Zip file. We will also understand how Java will see Windows File System and Zip File System.
This article is a list of examples about Java String. It explains creating a string, appending a string and searching for a specific string inside a string.
This example shows how we can swap content of two standard C++ list. The example uses swap function.
Remove function and remove_if functions deletes an item from the standard C++ List. This article shows how Remove and Remove_if can be used on the C++ List. It also shows how you can write remove_if predicate which can be used by C++ built-in Remove_if. Learn more here with an example.
1. C++ Signal and Raise - An Introduction C++ device driver programs can use the signal() and raise() in combination to perform interrupts using SIGINT type. When a program is running, one can interrupt it by making a call to the Raise function. Before we make a call to the raise function, we should register … Continue reading
This article explains how one can remove items from standard c++ list using the function clear(), empty() and remove(). It also explains how these functions differ and how one can use them.
In this example, we will see how one can create C++ List and then iterate through the List. This example uses C++ Standard iterator to to visit all the elements of the List.
The printf function in C++ accepts variable number of parameters. We can also write such a function to accept different number of arguments. Read this article to know how.