vikki


{ City } chennai
< Country > india
* Profession * software engineer
User No # 20649
Total Questions Posted # 0
Total Answers Posted # 5

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 97
Users Marked my Answers as Wrong # 7
Questions / { vikki }
Questions Answers Category Views Company eMail




Answers / { vikki }

Question { iFlex, 6912 }

what is the need of the Ajax?


Answer

in ajax we can send the request to server and get responce
from the server without submit the page(clicking button and
send the form ).

Is This Answer Correct ?    4 Yes 0 No

Question { 10113 }

what is the purpose of class "Object" which is base class
for all classes?


Answer

The Object class sits at the top of the class hierarchy
tree in the Java development environment. Every class in
the Java system is a descendent (direct or indirect) of the
Object class. The Object class defines the basic state and
behavior that all objects must have, such as the ability to
compare oneself to another object, to convert to a string,
to wait on a condition variable, to notify other objects
that a condition variable has changed, and to return the
object's class.

Is This Answer Correct ?    9 Yes 2 No


Question { 13585 }

How to convert String into primitive datatype.


Answer

using parseInt() method for example

//String to primitive types
int iVal = Integer.parseInt(str);
long lVal = Long.parseLong(str);
float fVal = Float.parseFloat(str);
double dVal = Double.parseDouble(str);

Is This Answer Correct ?    32 Yes 5 No

Question { Ericsson, 8860 }

Which of these methods belong to Thread & Object class?
join, yield, sleep, wait, notify


Answer

methods inherited from java.lang.Object
*clone
*equals
*finalize
*getClass
*hashCode
*notify
*notifyAll
*wait

and this three methods join, yield, sleep belongs to Threads
class

Is This Answer Correct ?    22 Yes 0 No

Question { Ericsson, 12230 }

What are the two ways you can synchronize a block of code?


Answer

There are two ways to syanchronize access to an object

1st one is using synchronized keyword for example

Synchronized type methodname(arg-list)
{
//synchrinized method body
}

2nd way s using synchronized block

synchronized(object)
{
//synchronized statement

}

Is This Answer Correct ?    30 Yes 0 No