Thank you @Gil Kirkpatrick.
Actually , our use case is there will be a long running flink on yarn cluster different stakeholders can submit their jobs on the session mode/ per job mode or application mode based on their requirement, these jobs are jars can be compiled with any java version based on their judgement.
we need to decide on default runtime (either java 8 and java 11) which will be better option and suffers as minimum error in runtime .