Multiple Choice Question

Quiz Guidelines

 

QID: 
287
Question: 

Note: This question may be considered too advanced for this exam. 

Given: 

String mStr = "123"; 
long m = // 1 

Which of the following options when put at //1 will assign 123 to m?

Select 3 options 

A. new Long(mStr); 
B. Long.parseLong(mStr); 
C. Long.longValue(mStr); 
D. (new Long()).parseLong(mStr); 
E. Long.valueOf(mStr).longValue();

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!