✏️ Explanatory Question

 List the variables from those given below that are composite data types:

  1. static int x;
  2. arr[i]=10;
  3. obj.display();
  4. boolean b;
  5. private char chr;
  6. String str;

👁 70 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

The composite data types are:

  • arr[i]=10;
  • obj.display();
  • String str;