Eclipse is my favourite IDE to code Java. It has it's own compiler and console.
Why it's my favourite:
It shows errors! This is the main thing why I use Eclipse, it shows your errors in your code.
I do not know much about NetBeans but my friend uses it a lot for his coding. I personally don't like it as much as eclipse but it maybe more user friendly.