string is object in java code example Example: java sstring //string syntax. String hello = "Hello, world!";