New course! Every coder should learn Generative AI!
Try a free lesson0
What is the difference between friendly and static?
1 Answer
+ 14
There is no friend key word in Java.
Static means that you don't have to create an object of the class to access it.