r/ProgrammerAnimemes • • Dec 20 '19

Java Breathing First Form: Implicit Conversion

Post image
982 Upvotes

14 comments sorted by

View all comments

Show parent comment

41

u/dionvc Dec 20 '19

In Java a primitive retains its declared type. It’s an int always will be. JavaScript is a bit different.

10

u/kill619 Dec 20 '19

Mmmm, php for a year made me forget that was a thing, ty.