how to create a java program that can't be closed on window and mac os

Every program can be closed with the use of task manager on any operating system, otherwise you can do it like this if you are dealing with swings:

setDefaultCloseOperation(DO_NOTHING);

Leave a Comment