In the main functions signature , what does static stands for? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

In the main functions signature , what does static stands for?

3rd Sep 2017, 11:45 AM
yash songara
yash songara - avatar
2 Answers
+ 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.
3rd Sep 2017, 12:03 PM
GAWEN STEASY
GAWEN STEASY - avatar
0
hi, static is a keyword so that it can be accessed outside class & without even an Object is created.
3rd Sep 2017, 11:51 AM
Nanda Balakrishnan