+ 2
What does the ‘static’ keyword mean?
6 odpowiedzi
+ 2
In short it means we can use a certain method without defining it, for more explaination you may like to visist tutorialspoint.
+ 1
yes,static means that the method does not belong to any particular instance but to the whole class
+ 1
static keyword means that , that method doesn't belong to the class and that method doesn't need to be called , which means you do not have to create object for such methods
+ 1
Static is also used as a keyword for variables to prevent their value from changing during runtime. Additionally, static can describe a block of code to be executed once on load.
+ 1
static keyword is used to allow variables and functions to call before any object created for the class
+ 1
static keywords used then don't create objects only create object reference