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 ...

Three-tier Architecture

Three-tier is a client–server architecture in which the user interface, functional process logic (“business rules”), computer data storage and data access are developed and maintained as independent modules, most often on separate platforms.    The three-tier model is a software architecture pattern.   Apart from the usual advantages of modular software with well-defined interfaces, the ...

Thread States

Thread States
New   This is the state the thread is in after the Thread instance has been created, but the start() method has not been invoked on the thread. It is a live Thread object, but not yet a thread of execution. At this point, the thread is considered not alive.     Runnable  This is ...

The ‘Rare’ static imports

The static import declaration imports static members from classes, allowing them to be used without class reference.   for example: import static java.lang.System.*; class A { public static void main(String args[]) { out.println("project code bank"); } }   output: project code bank   Note : Try to avoid this feature, because over a period you may ...

Synchronized Methods and Synchronized Blocks

If you declare a method to be synchronized, then the entire body of the method becomes synchronized; if you use the synchronized block, however, then you can surround just the “critical section” of the method in the synchronized block, while leaving the rest of the method out of the block.   If the entire method ...

Stubs and Skeletons

Stubs and Skeletons
In the distributed computing environment, stub stands for a client side object participating in the distributed object communication and a skeleton stands for a server side object participating in distributed object communication.  Stub  Skeleton  The stub acts as a gateway for client side objects and all outgoing requests to server side objects that are routed through it. The stub wraps ...

Speed of mouse…

A mickey is a unit of measurement for the speed and movement direction of a computer mouse. The speed of the mouse is the ratio between how many pixels the cursor moves on the screen and how many centimeters you move the mouse on the mouse pad. The directional movement is called the horizontal mickey ...