Create a free account on Computer Sir Ki Class and unlock access to valuable learning resources.
Exam Paper Downloads: After registering and logging in, you can download exam question papers in PDF format to practice and prepare for your exams.
Student Support: Get assistance with your doubts, queries, and questions related to your studies. Our support is here to help you understand topics and resolve your learning difficulties.
Register today and make your exam preparation easier and more effective!
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;
Answer:
The primitive data types in Java are byte, short, int, long, char, float, double and boolean.
All other data types – arrays, objects and interfaces – are composite or reference data types.
(ii) arr[i] = 10; is composite/reference data type
(iii) obj.display(); is composite/reference data type
(vi) String str; is composite data type
C. Sir| Created: 21-Mar-2018 | Updated: 17-Apr-2019|ICSE2014