Why use Generics in Java?

Generics add a way to specify concrete types to general purpose classes and methods that operated on Object before.   Code that uses generics has many benefits over non-generic code: 1. Stronger type checks at compile time(Compile-time type safety). A Java compiler applies strong type checking to generic code and issues errors if the code violates ...

What is Tunneling protocol?

A technology that enables one network to send its data via another network’s connections. Tunneling works by encapsulating a network protocol within packets carried by the second network. i.e. one network protocol (the delivery protocol) encapsulates a different payload protocol. By using tunneling one can  carry a payload over an incompatible delivery-network, or provide a ...

What is Object-Relational mapping (ORM) framework? 1

Object-relational mapping (ORM, O/RM or O/R mapping) in computer software is a programming technique for converting data between incompatible type systems in relational databases and object-oriented programming languages. This creates, in effect, a “virtual object database” that can be used from within the programming language. There are both free and commercial packages available that perform ...

What is Cloud Computing?

Cloud computing is a type of computing that relies on sharing computing resources rather than having local servers or personal devices to handle applications.   In cloud computing, the word cloud (also phrased as “the cloud”) is used as a metaphor for “the Internet,” so the phrase cloud computing means “a type of Internet-based computing,” ...

Web Server and Application Server

A Web server exclusively handles HTTP/HTTPS requests. It serves content to the web using HTTP/HTTPS protocol.   An Application server serves business logic to application programs through any number of protocols, possibly including HTTP. The application program can use this logic just as it would call a method on an object. In most cases, the server exposes this business ...

UnsupportedClassVersionError

Description : java.lang.UnsupportedClassVersionError:Bad version number in .class file  Cause: When code was compiled on a new version of Java and user is trying to run it on the older version of Java Possible Solution :  Make sure that both the versions are same.  

Understanding Hashcodes

Understanding Hashcodes
Imagine a set of buckets lined up on the floor. Someone hands you a piece of paper with a name on it. You take the name and calculate an integer code from it by using A is 1, B is 2, and so on, and adding the numeric values of all the letters in the ...

Understanding basics : Public Key and Private Key

Understanding basics : Public Key and Private Key
Let us discuss the basics of Public key and Private Key encryption mechanism The Public key can be issued to any interested party and the Private key is held absolutely privately: client’s private key by the client and the server’s private key by the server and It is not shared with anyone. It is impossible ...

Transient variables in Java

Java’s serialization provides an elegant, and easy to use mechanism for making an object’s state persistent. While controlling object serialization, we might have a particular object data member that we do not want the serialization mechanism to save.   The modifier transient can be applied to field members of a class to turn off serialization ...

TimeZones

TimeZones
UTC Coordinated Universal Time (UTC), also referred to as Greenwich Mean Time (GMT), Universal Time (UT), or “Zulu” is an international time scale used in astronomical and aviation publications, weather products, and other documents. UTC uses 24-hour (military) time notation and is based on the local standard time on the 0° longitude meridian which runs through ...