Sapient Company Programming

What will be the output of the following code?


1) runs successfully
2) compile time error
3) runtime error
4) none of the above

Read Solution (Total 0)

Sapient Other Question

MediaPlayer mediaPlayer = MediaPlayer.create(context, R.raw.sound_file_1);
mediaPlayer.start();
In this line of code, Which function has to be mentioned to start the mediaPlayer?

1) prepare()
2) looper()
3) none of the above
When is onAnimationRepeat() called?

1) When an animation starts itself
2) When an animation repeats itself
3) Both of the above
4) none of the above