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
Which command from the jdk compiles a java program?
What is the history of java?
Who is the owner of java?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Can an interface have a class?
What is an off by one error in java?
What is the longest unicode character?
What is javac_g?
Can we define constructor in inner class?
How can you generate random numbers in java?
What are the important methods of java exception class?
Can you make a constructor final?
What is meant by main method?
How do I stop concurrentmodificationexception?
How we can skip finally block of exception even if some exception occurs in the exception block in java?