What is the difference between friendly and static? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference between friendly and static?

17th Mar 2017, 3:27 PM
Vaideeshwaran Saravanabhavan
Vaideeshwaran Saravanabhavan - avatar
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.
18th Mar 2017, 10:29 PM
Tashi N
Tashi N - avatar