DEV Community

loading...

Discussion on: A Taste of Dynamic Typing in Java using the var keyword

Collapse
ryselis profile image
Karolis Ryselis

Java var is nothing like Python's def. def is used to declare a function or method.

Collapse
javinpaul profile image
javinpaul Author

Yeah, that's true, Java var is less powerful than Python def or even JavaScript var but it still useful on making your code elegant and concise.

Forem Open with the Forem app