Saturday 10 November 2018

java - Difference between string object and string literal

What is the difference between



String str = new String("abc");


and




String str = "abc";

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...