How to convert String into primitive datatype.

Answer Posted / niranjan sahoo

by using parsing methods of the respective primitive type like if we want to convert into int then use parseint() , if float then use parsefloat()...

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What must a class do to implement an interface in java programming?

540


Is upper case in java?

530


What is the difference between applet and application?

544


How many bits are in a sentence?

584


What are memory tables?

612






Can we override private constructor in java?

507


What is a classloader in java?

536


What is a heavyweight component?

542


Is java same as core java?

588


Which collection is best for sorting in java?

696


What is variable explain?

528


What is treeset in java?

547


How do you remove an object from an arraylist in java?

467


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

545


Is set thread safe java?

504