Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 public class str {
- 2
- 3 public static void main(String[] args)
- 4 {
- 5 String s = "abcd";
- 6 String y = new String("abcd");
- 7
- 8 System.out.println(s.getClass());
- 9 System.out.println(y.getClass());
- 10 }
- 11 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement