String is primitive data type in java which can take alpha numeric value. Character and number should be given in double quote format. Use of String in java is shown below.
Example of String in java
public class StringExample { public static void main(String[] args) { String abc="This is java string example"; System.out.println("Java String data type :"+abc); } }
Output
Java String data type :This is java string example
Tags: String



Link to Us