Computer Knowledge

Java Core Classes and Threads

1,935 Questions

Java core classes and threads form the foundation of object oriented programming and are crucial for IT officer and programming exams. This includes concepts like string mutability, collections, and multithreading. Solve these questions to test your practical coding and theoretical knowledge.

String and StringBuffer classesThread execution methodsJava collections frameworkCharacter streams input outputVariable serialization rules

Java Core Classes and Threads Questions

Multiple choice
  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)