2
Reply

What is the difference between public, static and void?

suryaa_world

suryaa_world

2y
12.1k
0
Reply

You can access public declared variables anywhere in the application.

Static declared variables are globally accessible without creating an instance of the class.

Void is a type modifier that specifies that the method doesn’t return any value.