List the variables from those given below that are composite data types: i. static int x; ii. arr[i]=10; iii. obj.display(); iv. boolean b; v. private char chr; vi. String str;
Advertisements
Question
List the variables from those given below that are composite data types:
- static int x;
- arr[i]=10;
- obj.display();
- boolean b;
- private char chr;
- String str;
Short Answer
Advertisements
Solution
The composite data types are:
- string str;
- arr[i] = 10;
- obj.display();
shaalaa.com
Classes as an Object Factory
Is there an error in this question or solution?
