Usually java won't die but there some cases I got Java Fern die off after the mother leaf produced a bunch baby planets then the mother leaf just become yellow and died, babies java will continue grow out on that or sometimes took off and float around. Another change that some parts of java on driftwood complete in darkness (no light reach to that part of it) then that part will die off over time.