+ 5

What is static keyword ?

static integer or static class

23rd Dec 2016, 6:17 AM
Bhuwan Sharma
Bhuwan Sharma - avatar
3 Answers
+ 3
The static keyword in java is used for memory management mainly. We can apply java static keyword with variables, methods, blocks and nested class. The static keyword belongs to the class than instance of the class. The static can be: variable (also known as class variable) method (also known as class method) block nested class.............
23rd Dec 2016, 6:23 AM
Alive Abhay
Alive Abhay - avatar
+ 8
static means that a variable, method, or class can be accessed without creating an object of the class it's in.
23rd Dec 2016, 6:23 AM
Tamra
Tamra - avatar
0
With static keyword a function, variable ... cannot be used by external files. Just the containing file and the one which they have been included to have right to use static data types.
29th Dec 2016, 7:14 PM
Mehdi Ahmadian