5 Replies Latest reply: Sep 17, 2008 1:18 AM by 843785 RSS

    what does "String.class" mean

    843785
      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());
      }
      }