No, because in Java you declare variables to have types.
You can write them easy, but they'll be very slow if you want to do anything complicated and/or in a loop.
Unless they get inlined, type-specialized, yada yada yada...
Solar panels 30-40 years ago were laughable as well mind you.
They were not laughable. There just wasn't enough of economical and environmental incentives back then to push for their mass production. Now there is.