+ 3

Play can one program java without using oops

Pls

10th Sep 2020, 5:15 PM
Abdul - Razaq
4 ответов
+ 3
there is some functional programming approach in java, but in the end java is OO at its core so as i said it before, pretend "as if" its not OOP is the best thing to do, if he insist to use non OOP in java. though its still possible to maintain some functional concept even in java. pure function, immutability, no side effects, high order function, etc. but even with all of those concept implemented, in java there will always be an Object implemented within it. so yes i agree with you, we're on the same page
10th Sep 2020, 8:00 PM
Rei
Rei - avatar
+ 1
but you can code "as if" you're coding in functional. java is designed to be OOP fron the beginning playing pretend is the best thing you can do. or maybe use other language, like Scala ?
10th Sep 2020, 5:42 PM
Rei
Rei - avatar