Advertisements
Advertisements
Question
What do the following functions return?
String x = "Vision";
String y = "2020";
- System.out.println(x + y);
- System.out.printh1(x.length ());
- System.out.println(x.charAt(3));
- System.out.println(x.equals(y));
Answer in Brief
Solution
- Vision2020
- 6
- i
- false
shaalaa.com
Is there an error in this question or solution?