+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

2 Answers

New Answer

+5

I am not sure if they are same but They behave same. Although, JavaScript also have static methods.

+2

www.geeksforgeeks.org/static-keyword-java/ https://www.w3schools.com/js/js_object_prototypes.asp They are not same or similar. https://code.sololearn.com/WT2eMwIS6RAM/?ref=app