well as i remember java can run on any platform due to its "java virtual machine" ; you should be able to play with Java on any Linux OS; for playing with web servlets you will need to have Tomcat set up with Apache.
I would hate a new user to be discouraged by not being able to to connect to use it or configure or use Kali. Something like Linux Lite makes it really easy by lots of helpful configuration dialogs. I don't expect Kali to do this as this distro is not in the beginner friendly niche.
Probably as good an approach as any is live boot something like Mint from a usb stick.if you try Ventoy and have say a 16gig stick you can have Mint and Linux lite and choose to boot either just make sure you get the right iso for your architecture.have you confirmed yet 32 or 64