5 Replies Latest reply on Sep 17, 2008 6:59 AM by 843785

    what does "String.class" mean

      I was going thru some java examples on the net....This is a pgm to find the class name of an object.
      Can anyone explain me wat does the statement Class clazz = String.class; do?
      public class ClassName {
      public static void main(String[] args) {

      Class clazz = String.class;
      System.out.println("Class Name: " + clazz.getName());