Java Escape Sequences With Program Example

A character went before by an oblique punctuation line () is known as getaway succession.

There are all out 8 getaway groupings in Java which have unique importance to the compiler.

At the point when we utilize a break grouping in print explanation then the compiler translates it in like manner.

All the departure groupings with program model are given underneath.

Escape Sequence Description
tIt will embed a tab in the content now.
bIt will embed a delete in the content now.
nIt will embed a newline in the content now.
rIt will embed a carriage return in the content now.
fIt will embed a formfeed in the content now.
It will embed a formfeed in the content now.
It will embed a twofold statement character in the content now.
It will embed an oblique punctuation line character in the content now.
class EscapeSequences
{
 public static void main(String...s)
 {
  System.out.print("tJustTechReview");
  System.out.print("nJustTechReview");
  System.out.print("nJustTechReview");
  System.out.print("nJustTechReview");
  System.out.print("'JustTechReview'");
  System.out.print("n"JustTechReview"");
  System.out.print("nfJustTechReview");
  System.out.print("nJustTechReview");
 }
} 

Output

Java Escape Sequences With Program Example

Leave a Comment