1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
weqwewe [10]
4 years ago
7

Instance data for a Java class Group of answer choices are limited to primitive types (e.g., int, float, char) are limited to St

rings are limited to objects(e.g., Strings, classes defined by other programmers) may be primitive types or objects, but objects must be defined to be private may be primitive types or objects
Computers and Technology
1 answer:
Arisa [49]4 years ago
8 0

Question

Instance data for a Java class

a. Are limited to primitive types (e.g., int, float, char)

b. Are limited to Strings

c. Ae limited to objects(e.g., Strings, classes defined by other programmers)

d. May be primitive types or objects, but objects must be defined to be private

e. May be primitive types or objects

Answer:

e. Instance data for a Java class may be primitive types or objects.

Explanation:

Instance data are defined as those entities that make up the class.

Instances may be of any available data type, whether it is primitive or it is an object.

Instances may also be public and they may be private.

By using objects as instance data, it permits the class to be built upon other classes. This relationship where a class has instance data that are other classes is known as a has a relationship.

You might be interested in
Hey! I was recommended a site “9anime” the other day. All’s been going well but I accidentally taped on a new dub settingZ somet
Studentka2010 [4]

Answer:

yep defiantly virus

Explanation:

8 0
2 years ago
Read 2 more answers
In a ____ queue, customers or jobs with higher priorities are pushed to the front of the queue.
saul85 [17]

Answer: In a priority queue, customers or jobs with higher priorities are pushed to the front of the queue.

Explanation:

A queue is an abstract data type which is an ordered set of elements. The elements are served in the order in which they join the queue. The first element which was put in the queue is processed first.  

The operations performed on queue data type are dequeue and enqueue.

Dequeue refers to removal of the first element from the queue after it has been serviced.

Enqueue refers to the arrival of new element when the element is added at the end of the queue.

A priority queue is another implementation of a queue. All the elements in a priority queue are assigned a priority. The element with the higher priority is served before the element with a lower priority. In situations of elements having same priority, the element is served based on the order in which the element joined the queue.

In programming, a priority queue can be implemented using heaps or an unordered array. Unordered array is used based on the mandatory operations which are performed on the priority queue.

The mandatory operations supported by a priority queue are is_empty, insert_with_priority and pull_highest_priority_element. These operations are implemented as functions in programming.

The is_empty confirms if the queue is empty and has no elements.

The insert_with_priority puts the new element at the appropriate position in the queue based on its priority. If the priority of the element is similar to the priority of other element, the position of the new element is decided based on the order of joining the queue.

The pull_highest_priority_element pulls the element having the highest priority so that it can be served before other elements. The element having the highest priority is typically the first element in the priority queue.

In operating system, priority queue is implemented to carry out the jobs and/or tasks based on their priority.

4 0
3 years ago
Each TextField has a text property that's returned by its textProperty method as a StringProperty. The StringProperty method ___
masha68 [24]

Answer:

B: Bind

Explanation:

JavaFX property binding permits the synchronization of the value of two properties in such a way that whenever there is a change in one of the properties, there is an immediate update on the value of the other property. In this way, The StringProperty method bind receives an ObservableValue as an argument. When the ObservableValue changes, the bound property is updated accordingly.

4 0
3 years ago
There is an increasing need for private security personnel because of declining resources for many government agencies and a sho
aivan3 [116]
<span>True
</span><span>There is an increasing need for private security personnel because of declining resources for many government agencies and a shortage of police officers in many communities due to lack of funding.

</span>
8 0
4 years ago
Which of these is a consistent periodic pulse separated into equivalent intervals of time?
Art [367]
My answer would be B. beat
6 0
3 years ago
Read 2 more answers
Other questions:
  • What is the name of Louis and Auguste Lumiere's invention that incorporated a camera, a printer, and a project all in one machin
    8·1 answer
  • True or false a computer network requires both hardware and software
    9·2 answers
  • How do i change my Email in brainly ? ​
    7·2 answers
  • Implement (in Java) the radixSort algorithm to sort in increasing order an array of integer positive keys. public void radixSort
    13·1 answer
  • Identify at least five different Arts, A/V Technology, and Communications careers that you could pursue in your home state, and
    11·1 answer
  • Someone help please!! i’ll give brainliest
    11·2 answers
  • Explain the limitations of the old economy<br>​
    15·1 answer
  • Niall is revising a history assignment using a word processor on a Windows computer. He wants to copy a section from an earlier
    8·1 answer
  • Walter has an associate's degree in computer science and aspires to become a web developer. Which certification will help enhanc
    14·1 answer
  • Which original VPN protocol is supported by most platforms but offers low levels of security?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!