You are just afraid that your java skills will be useless. Instead of panicing and depressing you could save that energy for learning new skills already. And really i dont get that. You know that tech is changing and you still are trying to reject that. Just embrace the change and go with the flow.