(String[] args)
| 7 | */ |
| 8 | public class StringDemo4 { |
| 9 | public static void main(String[] args) { |
| 10 | String s1 = "hello"; |
| 11 | String s2 = "world"; |
| 12 | String s3 = "helloworld"; |
| 13 | String s4 = s1 + s2; |
| 14 | String s5 = "hello"+"world"; |
| 15 | System.out.println(s4); |
| 16 | System.out.println(s5); |
| 17 | // System.out.println(s3 == s1 + s2);// false |
| 18 | // System.out.println(s3.equals(s1 + s2));// true |
| 19 | // System.out.println(s3 == "hello" + "world");// true |
| 20 | } |
| 21 | } |
nothing calls this directly
no outgoing calls
no test coverage detected