Showing posts with label jquery plugin development india. Show all posts
Showing posts with label jquery plugin development india. Show all posts

14 August, 2014

Java Strings - Few things that Java Programmer Should Know

A Java class that is very widely used is known as string. It is considered quite special since compared to a normal class it contains some unique, special characteristics. It consists of some characters in a sequence; through the class the object can be created. There are many concepts which can be carried on through this and are worth knowing by most Java programmers.

Creation of objects or instantiation- The object can be created in two different ways- through new keywords and through string literal. Through double quote a string literal can be created. With its creation each time, the constant pool is checked by JVM first. If the pool already has the string then it returns the pooled instance’s reference. If the pool does not contain it then a new object is instantiated which is then placed there. Memory efficiency is increased by this. Through keywords, the object is created in a straight-forward manner by JVM.