-
What is the output of this program?
public class string_Example
{
public static void main(String args[])
{
String obj = "I " + "like " + "Interview Mania ";
System.out.println(obj);
}
}
-
- Interview Mania
- InterviewMania
- i like
- like Interview
- I like Interview Mania
Correct Option: E
Java defines an operator +, it is used to concatenate strings.
output: I like Interview Mania