Core Java

Sunday, January 31, 2016

TestObject

package ClassAndObject;

public class TestObject {

/**
* @param args
*/

static int a = 30;
int b = 40;

public static void main(String[] args) {
// TODO Auto-generated method stub
TestObject obj = new TestObject();

System.out.println(obj.b);

System.out.println(TestObject.a);
}

}

Posted by Unknown at 6:18 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2016 (54)
    • ►  February (16)
    • ▼  January (38)
      • TestAccessModifiersExample3
      • TestAccessModifiersExample2
      • TestAccessModifiersExample1
      • TestAccessModifiers
      • ChildClass6
      • ParentClass6
      • ChildCalss5
      • ParentClass5
      • ChildClass4
      • ParentClass4
      • ChildClass3
      • ParentClass3
      • ChildClass2
      • ParentClass2
      • ChileClass1
      • ParaentClass1
      • PrePostIncrementExample4
      • PrePostIncrementExample3
      • PrePostIncrementExample2
      • PrePostIncrementExample1
      • TestReturnTypeInJava
      • TestMethodOverLoading
      • TestMethodOverLoadingExample2
      • TestMethodOverLoadingExample1
      • DataTypeExample1
      • DataType
      • ThisUses
      • TestThisKeyword
      • TestThisinJava
      • TestConstructor1
      • TestConstructor
      • Test2
      • Test1
      • callMethodFromOtherClass
      • TestClassAndObject
      • TestMethod
      • TestSIBandIIB
      • TestObject
Simple theme. Powered by Blogger.