Kinda the other way around right? Java was a popular language at the time so Brendan Eich picked that as part of the name to make his new language more popular.
Maybe. However, he wouldn't have been allowed to choose the name "JavaScript" if Netscape and Sun hadn't been in a business partnership. So my point is still valid. It was just a random ride on the Java wave.