Abstraction refers to the act of representing essential features to the outside world and showing the necessary functionality. Data Abstraction may also be defined as the process of identifying only the required characteristics of an object ignoring the irrelevant details. The properties and behaviors of an object differentiate it from …
Read More »Collections Framework in Java
History of Collection frame work: Java collections are a legacy frame work which contains classes and interfaces that implement commonly reusable collection of data structures. Java collection framework (JCF) it works as a library. Collection frame work in Java was designed and developed primarily by Joshua Bloch and was introduced …
Read More »String Builder : A Comprehensive Guide
String builder in Java is a class. It is like string objects, except that they can be modified. String Builder class is available in java.lang package. Internally String builder objects are treated like variable length arrays which contain sequence of characters. At any point of time, the length and content …
Read More »StringBuffer in Java
A string buffer is similar to String, but the difference is string cannot be modified but String Buffer is modified. String Buffer is thread safe and mutable sequence of characters. At any point in time it contains some particular sequence of characters, but the length and content of the sequence …
Read More »Exception Handling In Java
In this Article we are discussing about theExceptions and how to handle our custom exceptions in java. First we need to know about the what is Exception and what is Error? Exception is an abnormal condition which stops the execution of the program but an Error is sub class of …
Read More »Servlet Filters
Servlet Filters: If you are a beginner in web application programming, then you have a doubt however the user unless logged in to the account access the resources. Most of the beginners don’t know how solve this problem.This is avoided by using . The basic functionality of the servlet filter …
Read More »Java Primitive data Types and its Ranges
Web Socket
Web socket are introduced in java EE7 JSR 356 is related to web socket and provides API for creating web socket applications. Web socket is an application protocol that for a ideas full-duplex communication between two peers over the TCP protocol. The web socket enables web applications to deliver a …
Read More »Interview Questions in Java
1) String is mutable or immutable in java? Ans: In java all string are immutable. ( a mutable string can be changed but immutable string cannot be changed). 2) StringBuffer is thread safe or not? Ans: A StringBuffer is thread safe because it is synchronized. StringBuffer object is mutable. 3)What …
Read More »First Java Program
Java Program – Basic Syntax: public class ClassName { public static void main(String args[]){ Variables; Statements; } } First Java Program: public class FirstJavaProgram { /* This is my first java program. * This will print ‘Hello World’ as the output */ public static void main(String []args) { System.out.println(“Welcome to …
Read More »