Every Thread in java has some priority it may be default priority generated by JVM (or) explicitly provided by the programmer. The valid range of Thread priorities is 1 to 10 where 1 is the least priority and 10 is highest priority. Thread class defines the following constants to represent some standard priorities. 1) Thread. […]
A name in java program is called identifier. It could be class name, method name, variable name , e.t.c. Rules to define java identifiers: a-z,A-Z,0-9,_, $ are the only allowed characters in java identifiers. If we are using any other character we will get compile time error. Identifiers are not allowed to starts with digit. […]
when we have to stop a process dynamically we must know about which processes are currently running on the system,This java program will lists all the currently running processes on windows using the tasklist.exe it will list all the exe applications currently running on the system.
1. go to java installation directory, generally it is in program files, you will see a folder with name Java open the folder you will find the jdk directory click on jdk folder again 2. click on bin folder single click on the address bar of the window, copy the address. 3. open My Computer then […]
how to install java how to install and set path for java, checking which version of java you are using, you will find here step-by-step procedure to install java on your system and their further steps. 1. first download the jdk from the java sun site. 2. the downloaded file should be a executable file, […]
Sum of any number which are in sequence from start to end , there is a mathematical formula to calculate the sum of the given number if they are in sequence is sum=n(Fisrt_Number+Last_Number)/2 , where n is the count of given numbers for example: sum of 20, 21, 22, 23, 24, 25 can be calculated […]
A list of java basic programs for fresher as well as for experienced, Every developer face these questions in their interview. these are the basic programs based on numbers ,arrays ,string and use of collections