Is prototype in java script and static in java are same ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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