Computer Science, asked by Deepchlakra, 8 months ago

meaning of public static void in java​

Answers

Answered by arnavs0223
1

Answer:

Void means it returns nothing. Public means the method is accessible by any class in any package. The public static void main (String [] args) is a special method of a class, that is run when you invoke the java runtime passing the class file as the parameter.

HOPE IT HELPS YOU!!!

PLEASE MARK ME AS BRAINLIEST!!!

Answered by sudhi456
0

Answer:

public means that the method is visible and can be called from other objects of other types. ... This means that you can call a static method without creating an object of the class. void means that the method has no return value. If the method returned an int you would write int instead of void

Similar questions