it is possible to make terminate and stay resident application in java???if possible then how?
Why would you want to? Presumably so that you have a rapid response when another input comes along asynchronously, without the overhead of loading the program before you can process the input. Well there are several things in Java that do that kind of thing. The prime example that comes to mind is the Servlet class (in Java EE) - look at the API docs for that. java.lang.Thread is another class that can be used for similar purposes.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.