No, Java isn't built to run in a serverless environment. Java is memory-intensive and it's better to consume less memory while developing cloud-native applications.