To run java programs can we use notepad as text ed

Can we run java programs using notepad as text editor