Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Introduction Data types include: 1) Primitive (like numbers, text, date/time), a

ID: 3745340 • Letter: I

Question

Introduction

Data types include:

1) Primitive (like numbers, text, date/time), arrays;

2) Collections (lists, arrays, tables);

3) Objects

Collections and objects allows to combine multiple data entries together. For example, arrays are used to store a number of entries, addressing each entry by the collection name and a numerical index of the entry within the collection. For example, students[0] means the first student I the list.

Objects can store multiple data entries of any type including collections and even objects which stored under a field name. Then each entry is addressed by the object name and the field name. For example, user.name. Objects can also have methods which are algorithms or computing modules that can work with the data of object itself. For example, student.listOfCourses() can be a module that will output the names from each course object associated with the student.

Directions

Explain the applications of each data type to business data, and provide specific examples (for example, a date entry can store the date of the contract).

Explanation / Answer

In Context of Java,

Primitive Data Types such as numbers(int, double long, etc), text(char, String, etc ) are predefined by java or any other language to contain data with no user defined customization. Primitive data types are widely used as they are efficient in terms of memory storage, etc. Example- doing a simple computation with numbers of type int.

Collections in java provide user/programmer to do easy manipulation with data/objects with no restriction on size. For example : ArrayList in java is dynamic in nature. Also we can have ArrayList(or any other collection) of object type.

An Object is simply the instance of an entity which can have certain attributes(that may be defined by User). For example: An Elephant may be considered as an object having a trunk, tusks, etc as attributes.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote