java.lang.Class.getSigners()


java.lang.Class.getSigners()

package com.codingdict;



import java.lang.*;



public class ClassDemo {



   public static void main(String[] args) {



      try {  

         Class cls = Class.forName("ClassDemo"); 



         // returns the name of the class

         System.out.println("Class = " + cls.getName());



         Object[] obj = cls.getSigners();

         System.out.println("Value = " + obj); 

      } catch(ClassNotFoundException ex) {

         System.out.println(ex.toString());

      }

   }

}