Answer Posted / akshya kumar
using the wrapper classes, by using the function in
following way:
int i_var = Integer.parseInt(string_var); //and as in
answer #2
Integer, Float, Long are wrapper classes predefined in JAVA
with methods parseInt(), parseFloat etc respectively.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the types of strings?
What is ‘has a’’ relationship in java?
What is another word for methodology?
How to declare an arraylist in java?
What are the different types of inheritance in java?
What are the types of web technologies?
Difference between character constant and string constant in java ?
What is namespace in java?
what is abstract class in Java?
What are heterogeneous objects?
Explain the difference between call by refrence and call by value?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
What is difference between stringbuffer and string?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
What does the string method compareto () do?