a) a new line and hello
b) \nhello
c) the letter r and then hello
d) error
Answer:
b) \nhello
Explanation:
When prefixed with the letter ‘r’ or ‘R’, a string literal becomes a raw string, and the escape sequences such as \n are not converted.
a) a new line and hello
b) \nhello
c) the letter r and then hello
d) error
b) \nhello
When prefixed with the letter ‘r’ or ‘R’, a string literal becomes a raw string, and the escape sequences such as \n are not converted.
A. while statement B. do…while statement C. for statement D. loop statement Answer: D. loop statement Explanation: Repetition statement in java are while loop ,
a) SimpleDateFormat b) DateFormat c) SimpleFormat d) DateConverte Answer: a) SimpleDateFormat Explanation: We can use the SimpleDateFormat function in java to do this! So, option
a. Polymorphism b. Inheritance c. Abstraction d. Encapsulation Answer: b. Inheritance Explanation Inheritance in Java is a mechanism in which one object acquires all the
a. 76 b. 76.0252175 c. 76.03 d. 76.02 Answer: a. 76 Explanation: Firstly, 76.0252175 is multiplied by 100 we get the result as 7602.52175. Now
Oracle Certified Tutor/Trainer with 100+ reviews