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
Is arraylist an object in java?
Explain what access modifiers can be used for variables?
Can the garbage collection be forced by any means?
What is meant by flickering?
What is the purpose of extern variable?
What is outofmemoryerror in java?
Can we create a constructor in abstract class?
What is meant by JVM? Is JVM platform independent or not?
Define class?
'A class is a template for an object' explain this statement.
How do you include a string in java?
Is math class static in java?
What is public/private protected in java?
What is a website container?
Explain importance of finally block in java?