Advertisement
Guest User

Untitled

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