function of Java.parse()?
Answers
Answered by
7
hey!!!
here is ur answer!!!
________________________
FIRST WHAT IS PARSING IN JAVA??
as we all know passing is used to convert the value of one data type to a value of another data type.....
METHODS OR FUNCTIONS RELATED TO PARSING IN JAVA....
1) parseInt() : Its return type will be int....
It argument will be String....
It returns in value when the function has numbers in a string format as argument.....
2)parseDouble() : Its return type will be double.
Its argument will be String...
It. returns double value then the function of real numbers in a string format as argument..
3)parseFloat() : its return type will be float..
Its argument will be String...
It returns float value when the number has serial number in string format as arguments..
.....................................................................
They all are the wapper cass which Throws"NumberFormatException"....
_________________________
Hope this helps u!!
here is ur answer!!!
________________________
FIRST WHAT IS PARSING IN JAVA??
as we all know passing is used to convert the value of one data type to a value of another data type.....
METHODS OR FUNCTIONS RELATED TO PARSING IN JAVA....
1) parseInt() : Its return type will be int....
It argument will be String....
It returns in value when the function has numbers in a string format as argument.....
2)parseDouble() : Its return type will be double.
Its argument will be String...
It. returns double value then the function of real numbers in a string format as argument..
3)parseFloat() : its return type will be float..
Its argument will be String...
It returns float value when the number has serial number in string format as arguments..
.....................................................................
They all are the wapper cass which Throws"NumberFormatException"....
_________________________
Hope this helps u!!
Similar questions