diff between instance and static variable

Default Asked on October 14, 2015 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    static variable you can get out of class using class name

    MyClass.variable

    instance var only by object
    MyClass obj = new MyClass();
    obj.variable

    Reviewer Answered on October 16, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.