Brand new MacBook Pro flagship behaving strangely
If it is a hardware issue, you'll have CPU usage and issues with a stock OS. Back things up and wipe it. Then run the iLife apps like garage band and iMovie and Photos to soak the CPU.

Everything in my experience is you have some software issues that aren't ready for the new API and new CPU/GPU and will have occasional panics as the drivers get updated for non-apple users or the non-apple code gets patched to behave properly.


Adobe is notorious for needing a patch for new HW.
JRE, XAMPP, NetBeans - would depend heavily on your versions
Apple offer free hardware support - why not get them to check things and let you know. Run sysdiagnose each time you get a panic so you have all the diagnostic logs saved if you end up with some pattern of 10 or more KP so that engineering can analyze things. If you have less than a dozen crashes or can't make it happen, realize that you'll likely need to pay someone to analyze those diagnostics as it's time consuming and requires fairly specialized experience to make headway on non-reproducible core dumps and panics.