will give you the name of current thread which is "main" and not Thread1 which i think you are assuming.
Richards Milan wrote:I need to turn off my system by pressing a "Turn Off Computer" button in my java application. Can anyone help me in getting the code for that....?? I am using WINDOWS 7 HOME PREMIUM
vinayGuddu Pandey wrote:Hi,Can anyone tell me the method with basics example of object class.and where I can use it.and please give detail about equal(Object obj) and ==.