You can have Java variables passing values into Javascript but not other way round.
No, you can't. They cannot inter-operate in any fashion. But as I stated, Java can be used to
generate the Javascript that will eventually be sent to the client. That is not at all the same as "passing Java variables into Javascipt".