Programming Code Examples

Send an encrypted email using automated in Java

Today we are going to demonstrate how to send encrypted emails using java. Data encryption is necessary as in the real life is full of security threats from hackers, The data must be protected by using some form of...

Java Code to Extract Text from PDF Files

Today in this article I am going to demonstrate you how to read or extract text from pdf files using java code. Why do I even need to read the pdf files ? Okay, suppose you are programming a E-commerce website using...

How to perform HTTP authentication in Servlets

It is common in web applications to pass data or parameters from one to another page. To retrieve the value of various elements in a HTML form or from another page, we can use the following method which is available...

What is Object Slicing in C++

Object Slicing In inheritance we can assign a derived class object to a base class object. But, a base class object cannot be assigned to a derived class object. When a derived class object is assigned to a base class...

What are types of constructors in C++

Types of Constructors A constructor can be classified into following types: Dummy constructorDefault constructorParameterized constructorCopy constructorDynamic constructor Dummy Constructor When no constructors are...