If you're worried about Java and JavasScript becoming irrelevant by the time you finish a four-year degree, don't be. The good news is that it doesn't have to take a full four years in a traditional four year university to learn these languages. There are plenty of cheap or free online schools that provide industry-ready knowledge of these languages and more.
But, do keep in mind that the world of tech can be broad and complex; job requirements vary from region to region and company to company. Some employers may be open to hiring individuals without a four year degree, but others may require one without exceptions. Either way, learning the languages themselves is a solid first step towards landing a job in tech.