They are both very good, professional quality IDEs. Both NetBeans and Eclipse are used by many
Java developers.
It's not really a matter of "which is better", but more personal preference which works best for you. If you want to make a choice, try them both out, and see which one suits you best.