new string() in java code example
Example 1: how to make a string java
String newString = "Hello World";
Example 2: how to make a string in java
//In Javascript, a string is declared using double quotes "". It is made up by character values.
//For eg:
string = "hello".