+ 6
I still don't understand what Static, Void and Public...
7 Answers
+ 7
When you declare a method or an attribute as static, it basically means that you don't have to create an instance of that particular class in order to access that particular method or attribute rather it belongs to the class. Furthermore you can access that method or attribute via the class name.
When a method is delcared as void, you're basically saying "i don't want to return anything for this method ".
When public is used with classes, methods or attributes. This means that its visible/ accessible by any other class regardless of the package but bare in mind, in order to access a class in a different package you need to import it.
+ 3
Public means the method is visible and can interact with other types of objects. Void means that it does not have a return value. Static means that the is associated with the class. -snoÉŻÊuouâ
0
Static: if you use static then no need to create an object for it,
Void : it returns nothing, it is used when we don't want to return anything,
Public : if the class, methods or attributes is defined as public, it can be accessed anywhere by creating an object for it
0
void is doesn't return the any value of tha OS .The c,c++ has been return the 0 to os
- 1
void just avoid any returns
static non active means no instances created
- 5
ŰčÙŰČ Ű§ŰȘŰčÙÙ
ÙŰșŰ© java
- 6
hi