Java Programing laungage

Core Java Tutorial

Introduction of Core Java

How To Install JDk and Set of Path

Syntax of java Program

Difference between Java and C/C++

Advantage and Disadvantage of Java

What is Java

Why Java is not Pure Object Oriented Language

Java has Following Features/Characteristics

Limitation of Java Language and Java Internet

Common Misconception about Java

Simple Program of Java

Integrated Development Environment in java

Compile and Run Java Program

Applet and Comments in Java

Tokens in Java

Keywords in Java

Identifier and Variables in Java

Literals/Constants

Data Type in Java

Assignments and Initialization in Java

Operators in Java

Rule of Precedence in Java

Operator on Integer and Separators in Java Programming

Java Control Flow of Statements

If and If-else Selection Statement

Nested If-else and If-else-If Selection Statement

switch case and conditional operator Selection Statement

for and while Loop

do..while and for each Loop

break and labeled break statement

continue and labeled continue statement

return Statement and exit() Method

Escape Sequence for Special Characters and Unicode Code

Constants and Block or Scope

Statement in Java

Conversions between Numeric Types in Java

Import Statement in Java

User Input in Java using Scanner Class

User Input in Java using Console Class

Array in Java

One Dimensional Array

Two Dimensional Array

Two Dimensional Array Program

Command Line Argument in Java

String args Types in Java

Uneven/Jagged array in java

Math Class Function and Constant

Math Class all Function used in a program

Enumerated Types in Java

Object Oriented Programming v/s Procedural Programming

Object Oriented Programming Concepts in Java

Introduction to Class,Object and Method in Java

Class Declaration in Java

Class & Objects in java

Encapsulation in Java

Modifiers/Visibility for a Class or Interrface or member of a Class

Polymorphism in Java

Runtime polymorphism (dynamic binding or method overriding)

Escape Sequence for Special Characters and Unicode Code
Previous Home Next

A character preceded by a backslash (\) is an escape sequence and has special meaning to the compiler.

Escape Sequence Description
\t Inserts a tab in the text at this point.
\bInserts a backspace in the text at this point.
\n Inserts a newline in the text at this point.
\rInserts a carriage return in the text at this point.
\fInserts a form feed in the text at this point.
\'Inserts a single quote character in the text at this point.
\" Inserts a double quote character in the text at this point.
\\Inserts a backslash character in the text at this point.

 

Example :

public class Test 
{
	public static void main(String args[])
	{
		System.out.println(" \"Hello!\" to me.");
	}
}

output :

"Hello!" to me.
Unicode Code in Java

Unicode provides a unique number for every character. Unicode code in Java Programming is a system of encoding characters. all characters and string in java used the Unicode encoding which allows truly international programming. Unicode is a universal international standard character encoding that is capable of representing most of the world's written languages.

Any character in source code can also be represented by its unicode number. By starting with \u followed by its 4 digits hexadecimal code.

Example :

class TestUniEsp 
		static \u0069nt \u611b = 3;
		public static void main(String[] arg) 
		{
			System.out.println( \u611b );
		}

public class Char
{
	public static void main(String[] args) 
	{
		char a;
		a = 65; // 65 = Char code for the character 'A'
		System.out.println(a); // Prints 'A' 
		int i;
		i = 'A' + 1; // 'A' is just an integer !!! 
		System.out.println(i); // Prints 66 !!!
	}
}
Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: