MATLAB - Sample Interview Question (Junior Level)

Which of the following approaches will work fine?

//A.
String name = "David";
Object x = name;
   
//B.
Object x = "David";
String name = x;

  1. A
  2. B
  3. Both A and B will work fine
  4. None of them will work
Tests in MATLAB for Juniors

Test Name Difficulty Time (minutes) No. of Questions
MATLAB Online Test for Juniors MATLAB Junior 20 10