Why do we return function as static int not int what the use of static | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why do we return function as static int not int what the use of static

java

4th Oct 2018, 4:33 PM
Vishal G
Vishal G - avatar
2 Answers
4th Oct 2018, 6:36 PM
Ipang
0
static is a keyword used in C, C++and Java programming languages | and also static declare the scope of any variable or function |
4th Oct 2018, 5:03 PM
Harinarayan Sahu
Harinarayan Sahu - avatar