Computer Applications
Which of the following is an escape sequence character in Java ?
- /n
- \t
- /t
- //n
Values & Data Types Java
2 Likes
Answer
\t
Reason — In Java, an escape sequence is a combination of characters starting with a backslash (\) followed by a specific character that performs a special operation.
Analysing the given options:
/n– Incorrect, should be\n(Backslash is required).\t– Correct, it represents a tab./t– Incorrect, should be\t.//n– Incorrect, this is not an escape sequence;//is used for comments in Java.
Answered By
1 Like
Related Questions
Which of the following is non-numeric data type?
- boolean
- int
- float
- double
Which of the following ASCII code range is applicable for lowercase letters?
- 65 - 90
- 90 - 115
- 97 - 122
- 95 - 110
int x = (int) 32.8;It is an example of …………… type casting.
- implicit
- automatic
- explicit
- coercion
Read the following text and choose the correct answer:
In an implicit type conversion, the result of an expression is obtained in the higher most data type without any intervention of the user.
What does an implicit do ?
- It arranges the data of an expression.
- The user involves to get the desired result of an expression.
- By default, the expression gets into higher data type in this conversion.
- The user has a choice to get the desired data type.