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
Svetlanka [38]
3 years ago
5

Some classes, like the ArrayList class, use angle brackets in their documentation and their declaration. For example, the Java d

ocumentation for the ArrayList class starts with this: public class ArrayList. What is the name for classes that have extra "parameter(s)" in angle brackets like this? Group of answer choices generic classes specific classes hard classes type classes
Computers and Technology
1 answer:
alex41 [277]3 years ago
6 0

Answer:

The answer to the following question is Generic classes.

Explanation:

The declaration of the generic classes is the same as the declaration of non-generic classes but except the class name has followed by the type of parameter section.

The parameter section of the generic class can have only one or more than one type parameter which is separated by the commas.

Following example can explain that how can define generic class.

public class demo<D> {

  private D d;

  public void fun(D d) {

     this.d = d;

  }

  public D get() {

     return d;

  }

  public static void main(String[] args) {

     demo<Integer> integerdemo = new demo<Integer>();

     demo<String> stringdemo = new demo<String>();

   

     integerdemo.fun(new Integer(10));

     stringdemo.fun(new String("Hello World"));

     System.out.printf("The Integer Value is :%d\n\n", integerdemo.get());

     System.out.printf("The String Value is :%s\n", stringdemo.get());

  }

}

You might be interested in
What type of device is characteristic of an enterprise environment?
Nitella [24]
A workstation used at an engineering firm.
8 0
3 years ago
Angelina wants her text to look less crowded on the page, so she decides to decrease the length of the space the text occupies.
ratelena [41]

Answer:

She can go to the Layout tab and then to the Page setup command group to increase the margins of the page.

Explanation:

Because margin decides from the text should start ie. it decides how much space should be left on the top of the page, bottom, left and right. If you increase the margin automatically the amount of space in all the four sides gets increased and hence the contents gets automatically adjusted and the text will look better readable than before.

The crowd that it has created before automatically gets adjusted and will give a better look.

8 0
3 years ago
Read 2 more answers
2-3 Calculating the Body Mass Index (BMI). (Programming Exercise 2.14) Body Mass Index is a measure of health based on your weig
Luden [163]

Answer:

weight = float(input("Enter your weight in pounds: "))

height = float(input("Enter your height in inches: "))

weight = weight * 0.45359237

height = height * 0.0254

bmi = weight / (height * height)

print("Your BMI is: %.4f" % bmi)

Explanation:

*The code is written in Python.

Ask the user to enter weight in pounds and height in inches

Convert the weight into kilograms and height into meters using given conversion rates

Calculate the BMI using given formula

Print the BMI

5 0
3 years ago
What is the dark, sticky substance that forms when tobacco is burned?
sashaice [31]

Answer: Tar.

Explanation:

A chemical substance made when tobacco is burned. Tar contains most of the cancer-causing and other harmful chemicals found in tobacco smoke. When tobacco smoke is inhaled, the tar can form a sticky layer on the inside of the lungs.

7 0
2 years ago
What is the main difference between a LAN and a WAN?
snow_tiger [21]
LAN is local area network and WAN is wide are networks, so it’s the distance they span
8 0
3 years ago
Other questions:
  • Can someone please help me write a code for this
    7·1 answer
  • Melissa is the network administrator for a small publishing company. as network administrator, she is in charge of maintaining t
    8·1 answer
  • I need help making a survey for highschool students in my school any topics/questions?
    9·1 answer
  • Which of the following is a strategy used to enhance communication in a presentation?
    14·1 answer
  • Write a class "Dog" with a private int field called months and two public member functions setAge and GetStage. setAge takes as
    13·1 answer
  • Which command do you use to save a document with a new name? Choose the answer.
    10·2 answers
  • In 2-5 paragraphs, describe how you would create a new database using your software.
    9·1 answer
  • In 1868 the qwerty keyboard was patented by this man
    5·1 answer
  • The most significant concerns for implementation of computer technology involve _______, security, and ethics. accuracy property
    10·1 answer
  • Which type of shape allows you to add text that can be moved around.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!