Is prototype in java script and static in java are same ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 4

Is prototype in java script and static in java are same ?

Because: If we create a method in prototype there is only one method balance are just reference same thing goes in static in java

2nd Dec 2019, 1:59 PM
Programmer Raja
Programmer Raja - avatar
2 Réponses
+ 6
I am not sure if they are same but They behave same. Although, JavaScript also have static methods.
2nd Dec 2019, 2:42 PM
Raj Chhatrala
Raj Chhatrala - avatar