- 1
In the main functions signature , what does static stands for?
2 Respuestas
+ 3
static method definition.:
The first line of a static method definition, known as the signature, gives a name to the method and to each parameter variable. It also specifies the type of each parameter variable and the return type of the method. Following the signature is the body of the method, enclosed in curly braces. The body consists of the kinds of statements we discussed in Chapter 1. It also can contain a return statement, which transfers control back to the point where the static method was called and returns the result of the computation or return value. The body may declare local variables, which are variables that are available only inside the method in which they are declared.
0
hi,
static is a keyword so that it can be accessed outside class & without even an Object is created.