install netbeans 8.2 ubuntu 20.04

C++
sudo apt install default-jdk
sudo snap install netbeans --classic

#for remove netbeans
sudo snap remove netbeans
Source

Also in C++: