Write a program in java to demonstrate class member?

class ClassMember

{

                static int a;          //Class Member

                public static void main(String ar[])

                {

                                int b=7; //Local Variable

                                System.out.println(a);

                                System.out.println(b);

                }

}
Class Member.PNG

 

, , ,

Leave a Reply