Home / MCQ Bank / Computer
Computer Strings

What will s2 contain after following lines of Java code? String s1 = "one"; String s2 = s1.concat("two")

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • onetwo

Related Computer Questions

Which of the following returns a signed integer type on finding the difference between two pointers to elements in the same array? What will be the output of the following C code? #include <stdio.h> union u { struct { unsigned char x : 2; unsigned int y : 2; }p; int x; }; int main() { union u u = {2}; printf("%d\n", u.p.x); } Which of the following statements isn't true? Debit note is used for entering Determine Output: void main() { char *p; printf("%d %d", sizeof(*p), sizeof(p)); }