Java MCQ: Total constructors in the String class have?
a) 13
b) 10
c) 12
d) 15
Answer:
c) 12
Explanation:
The String
class in Java has 12 constructors that allow for the creation of strings in various ways, such as from arrays of bytes, characters, and string literals.
Reference links:
https://www.rameshfadatare.com/learn-java-programming/
https://www.javaguides.net/p/java-tutorial-learn-java-programming.html