Computer Science, asked by idkkk70lolllll, 19 days ago

write a program by demonstrating escape sequence using static initialisation

please correct answer only!!​

Answers

Answered by Anonymous
2

Answer:

  • Tab : '\t'
  • Newline : '\n'
  • Backspace : '\b'
  • Form feed : '\f'
  • Carriage return : '\r'
  • Backslash : '\\'
  • Single quote : '\''
  • Double quote : '\"'

Explanation:

An Escape Sequence is a character or a sequence of characters, the purpose of which is to implement the characters which they don’t represent literally and which might be otherwise unfeasible to represent. Some examples of such characters would be backspace, newline, horizontal or vertical tab, to name a few. In java, these sequences are represented by a preceding backslash ‘\’ and belong to the Character data type. There are a total of 8 escape sequences in java. They are listed below :

Answered by dorarai1234
1

Answer:

t: insert a tab

\n: inserts a new line

\r: inserts a carriage return

Similar questions