Engineering Full Stack Apps with Java and JavaScript
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();