Searched for ""

JSP Basics

A JSP becomes a servlet. You don’t directly create servlet, it is generated by Container only. Container takes what you have written in your JSP, translates it into a servlet class source file then compiles that into a java servlet class. And this code would execute in the same as it were written in java file.

Non Access Modifiers in Java

Access modifiers provide a mechanism for Access Control and different access modifiers can be used to achieve different accessibility. But Non Access Modifiers have nothing to do with accessibility. But it is used to determine specific characteristics of class/variable/methods etc. Below are the 7 Non Access Modifiers available in Java.

Access Modifiers in Java

Access modifiers (AM) in java help you set the level of access you want for your class, constructor, variables as well as methods. Access levels (Access Control) can be changed by using different access modifiers. There are three access modifiers but four access control. Default is the access control which will be set when one… Continue reading

String Builder

A String Builder is like a String but can be modified. String has the drawback that once created it can not be modified. To overcome that problem String Buffer and String builder can be used. Difference between String Buffer and String Builder ‘StringBuffer’ is safe for use by multiple threads(Thread Safe). The methods are synchronized…. Continue reading

Serialization in Java

Java object serialization is used to persist Java objects to a file, database, network, process or any other system. Serialization flattens objects into an ordered, or serialized stream of bytes. The ordered stream of bytes can then be read at a later time, or in another environment, to recreate the original objects.