a) s.__len__()
b) len(s)
c) size(s)
d) s.size()
Answer:
a) s.__len__()
Explanation:
We usually use len(s) to print the length of the string. It works by calling an __len__ method behind the scene, thus a is the right choice!
a) s.__len__()
b) len(s)
c) size(s)
d) s.size()
a) s.__len__()
We usually use len(s) to print the length of the string. It works by calling an __len__ method behind the scene, thus a is the right choice!
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