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

How does hashmap work in java ?

535


What is a stack class in java ?

602


What is a text string?

613


What is the file type?

551


What is the function of static in java?

535






What is a programming object?

548


What do you mean by constant time complexity?

594


What type of variable is gender?

537


Can we override compareto method?

496


For class CFoo { }; what default methods will the compiler generate for you>?

607


What is final, finally, finalize?

590


Can you instantiate the math class?

594


How are variables stored?

527


What does a method signature consist of?

503


What is the latest version of java?

577