# Aakanksha

## Forum Replies Created

Viewing 10 posts - 1 through 10 (of 1,119 total)
• Author
Posts
• #15526
Aakanksha
Participant

Answer: PATH is an environment variable used by operating system to locate the executables. A Classpath variable is specific to java and used by java executables to locate class files. Location can be provided to classpath while running java application and it can be a ZIP files, directory, JAR files etc.

#15430
Aakanksha
Participant

void reverselist(void)
{
return;
return;
{
}
else
{
node* curnext = cur->next;

for(; curnext!=0; )
{
cur->next = pre;
pre = cur;
cur = curnext;
curnext = curnext->next;
}

curnext->next = cur;
}
}

Aakanksha
Participant

• It permits code reusability.
• Reusability saves time in program development.
• It encourages the reuse of proven and debugged high-quality software, thus reducing problem after a system becomes functional.
in reply to: What is Probability #15407
Aakanksha
Participant

Answer: Probability is a measure of the likeliness that an event will occur. Probability theory is applied in everyday life in risk assessment and in trade on financial markets. Governments apply probabilistic methods in environmental regulation, where it is called pathway analysis.

in reply to: Define simple and compound interest #15404
Aakanksha
Participant

Answer: If the interest on a sum borrowed for a certain period is reckoned uniformly, then it is called simple interest. Let Principal= âPâ, Rate=R% per annum, and Time= âTâ years then
Simple interest =((P*T*R)/100)
Compound interest: The formula for calculating compound interest is:
Amount=P(1+R/100)n
P= principal amount (the initial amount you borrow or deposit)
R = annual rate of interest (as a decimal)
T = number of years the amount is deposited or borrowed for.
A = amount of money accumulated after n years, including interest.
n = number of times the interest is compounded per year

• This reply was modified 9 years ago by Aakanksha.
#15283
Aakanksha
Participant

Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method’s object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement.

#15282
Aakanksha
Participant

The File class encapsulates the files and directories of the local file system. The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file.

in reply to: What is casting #15281
Aakanksha
Participant

There are two types of casting, casting between primitive numeric types and casting between object references. Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to refer to an object by a compatible class, interface, or array type reference.