String Operations

String

The String class represents character strings. All string literals in Java programs, such as,”abc” are implemented as instances of this class. Strings are constant; their values cannot be changed after they are created. String buffers support mutable strings. Because String objects are immutable they can be shared. Example

is equivalent to:

Read more about String Operations[…]

Literals in Java

Literals in Java are a sequence of characters (digits, letters, and other characters) that represent constant values to be stored in variables or we can say Literal¬†is the source code representation of a fixed value. Literals are represented directly in your code without requiring computation. Java language specifies five major types of literals. Literals in Read more about Literals in Java[…]

How to use Arrays in Java

Arrays are Collection of similar data types that share common name and memory or an array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed. Each item in an array is Read more about How to use Arrays in Java[…]

How to declare a variable in Java

A variable is the name of a reserved area allocated in memory. In other words, it is a name of the memory location or temporary memory locations used to store values. In Java, all variables must be declared before they can be used. The basic form of a variable declaration is shown here: Generalized Syntax Read more about How to declare a variable in Java[…]

Contact Us
close slider
Contact Us

How can we help you with?