gs gs128 Java String Handling - Java String Handling Basics - Quiz No.1
gs gs128 Java Quiz
This quiz belongs to book/course code gs gs128 Java of gs organization. We have 136 quizzes available related to the book/course Java. This quiz has a total of 9 multiple choice questions (MCQs) to prepare and belongs to topic Java String Handling. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: Which of these class is superclass of String and StringBuffer class?
java.util
java.lang
ArrayList
None of the mentioned
Question 3: Which of this method of class String is used to obtain a length of String object?
get()
Sizeof()
lengthof()
length()
Question 4: Which of these method of class String is used to extract a single character from a String object?
CHARAT()
chatat()
charAt()
ChatAt()
Question 5: Which of these constructors is used to create an empty String object?
String()
String(void)
String(0)
None of the mentioned
Question 6: Which of these is an incorrect statement?
String objects are immutable, they cannot be changed
String object can point to some other reference of String variable
StringBuffer class is used to store string in a buffer for later use
None of the mentioned