Only AEM 6.5 and AEM as a Cloud Service support Java11. And the migration of the codebase of your application is typically a no-brainer, because in most cases you don't have to do anything with your code. There might be 3rd party libraries, which might have problems with Java11 (mostly the module system introduced with Java9), but Sling and AEM work flawlessly with Java 11.