Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

What is static keyword?

Category: Java

static keyword can be used with class level variables to make it global i.e all the objects will share the same variable.
static keyword can be used with methods also. A static method can access only static variables of class and invoke only static methods of the class.

Leave a Reply

Your email address will not be published. Required fields are marked *