Multiple choice

int icon=R.drawable.icon; CharSequence ticker = “Hello World”; Long cur=System.currentTimeMillis();

What are the correct sequence to send the above values to constructor of Notification?

  1. Notification notn=new Notification(icon,ticker,cur)

  2. Notification notn=new Notification(cur,ticker,icon)

  3. Notification notn=new Notification(icon,cur,ticker)

  4. Notification notn=new Notification(ticker,icon,cur)

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The correct code for Notification is as follows: int icon=R.drawable.icon; CharSequence ticker = “Hello World”; Long cur=System.currentTimeMillis(); Notification notn=new Notification(icon,ticker,cur)