Java will almost certainly still be around. Languages don’t die. Some decline in popularity a little, some decline in popularity a lot, and a few stay very popular for a long, long time.
C, for example, is currently the most popular programming language (per the TIOBE Index, as of this writing in July 2020) and it’s running neck-in-neck against Java for top spot. All the other competitors are well behind these two front-runners.
C has been around since the early 1970’s. Will Java last as long and be as popular?
There’s a good chance it will.
But a framework like Spring, probably not. Frameworks are ephemeral and constantly changing. Likely as not, something will come along to replace Spring, and whilst Spring will continue to be used, it will decline in popularity until almost no one chooses it any more.
Instead, everyone will want to use the cool new hotness, whatever it is.
But that doesn’t matter. In a long career, you’ll change frameworks and platforms and tools and languages many, many times. It’s how the industry works, and everyone gets used to it.
By the way, GPT-3 is a text-generation toy. It has nothing to do with computer languages, other than being written using one, and being able to create useless code-like pseudo-programs. It certainly won’t replace them.