Task
Java
1
package com.company; 
2
public class Main { 
3
    public static void main(String[] args) { 
4
        String s1 = "Cat"; 
5
        String s2 = new String("Cat"); 
6
        String s3 = new String("Dog"); 
7


                                                   
8


                                                   
9


                                                   
10
    } 
11
} 
Your last submission is saved in the editor window.
     

Results:

All results: