What is the difference between friendly and static? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What is the difference between friendly and static?

17th Mar 2017, 3:27 PM
Vaideeshwaran Saravanabhavan
Vaideeshwaran Saravanabhavan - avatar
1 Réponse
+ 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