/**
    The main() daemon status is checked through the new Thread t
    which will inherit main()'s status by default 
 */
class CheckMainDaemon {

    public static void main(String[] args) {
    
        Thread t = new Thread();
        System.out.println("Daemon status based on main() daemon status: " + t.isDaemon());
    }
}
