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) It can only contain one class declaration. b) It can contain one public class declaration and one public interface definition. c) It must define
a. Java is object-oriented and interpreted. b. Java is efficient and faster than C++. c. Java is the choice of everyone. d. Java is not robust.
a. public static void main(string[] args) b. public static void Main(string[] args) c. public static void main(Strings[] args) d. public static void main(String[] args) Answer:
a. data value stored in memory that can change its value but cannot change its type during the program’s execution b. data type stored in
Oracle Certified Tutor/Trainer with 100+ reviews