McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2025
→
Bachelor of Computer Applications (BCA)
→
Java Programming
→
String constants are said to be_____ of ...
Q.
String constants are said to be_____ of string class.
A.
objects.
B.
char.
C.
data.
D.
variable.
Answer» A. objects.
1.8k
0
Do you find this helpful?
16
View all MCQs in
Java Programming
Discussion
No comments yet
Login to comment
Related MCQs
Given the following declarations String s1=new String("Hello") ; String s2=new String("there"); String s3=new String(); Which of the following are legal operations?
Which of these method of class String is used to extract a single character from a String object?
Which of these method of class String is used to obtain length of String object?
Which of this method of class String is used to obtain a length of String object?
Consider the following code snippet String river = new String(“Columbia”); System.out.println(river.length()); What is printed?
If you run the code below, what gets printed out?String s=new String ("Bicycle"); int iBegin=1; char iEnd=3; System.out.println (s.substring (iBegin, iEnd));
Given the code String s = new String("abc"); Which of the following call is not valid?
What are the constants defined by Byte, Short, Integer and Long? 1. MAX_VALUE, 2.~~~MIN_VALUE 3. TYPE.
Which method defined in Integer class can be used to convert a whole number in string type to primitive int type.
Which of the following is an exception thrown by the methods of the class String?