Category: JAVA

StringBuffer and StringBuilder

String Operations

String public final class String extends Object implements Serializable, Comparable, CharSequence The String class represents character strings. All string literals in Java programs, such as,”abc” are implemented as instances of this class. Strings are...

Operators in Java

Operators in Java

Java provides a rich set of operators environment which are used to manipulate primitive data types. There are many types of operators in java which are given below: Arithmetic operators Unary Operators Assignment Operators...

THIS Keyword in Java with example

THIS keyword in Java with Example

In Java, current context in class is referred using “this”. “this” becomes compulsory when member data and arguments share a common name. Example class Student{ int age; Teacher(int age) { age=age; // After compilation...