String Funda of Concatenation and ==

String Funda of Concatenation and ==
SOURCE : StringFunda.java


public class StringFunda {

public static void main(String[] args) {

String s = "RAM";
s = s + "KUMAR";

String s1 = "RAMKUMAR";

System.out.println((s == s1));

}

}



INPUT




OUTPUT

false







Sandeep Kumar D

Hi, I have written and developed this post so that most of people will be benefited. I'm committed to provide easy and in-depth tutorials on various technologies.I hope it will help you a lot.

- Sandeep Kumar D

Follow Me @Google+




SHARE

    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment