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
The rhythmic note that three beats is called a____half note.
aev [14]

Answer:

it is called a dotted half note

7 0
3 years ago
Read 2 more answers
Differences between mechanical and electromechanical device .two points<br>plz ​
Ivan

hich group most threatened the Byzantine Empire in 1050?

Ottoman Turks

Muslim Arabs

Latin Christians

Orthodox Christians

3 0
2 years ago
The number 10 is a floating point literal
DaniilM [7]

Answer:

Floating point literal defines a compile-time constant whose value is specified in the source file

Explanation:

5 0
3 years ago
Which of the following are true of e-mail communications when compared to phone or face-to-face communications?
ollegr [7]
They would be easily shared, from what I believe
7 0
3 years ago
Read 2 more answers
Can someone help me please
adoni [48]

The unit of measurement for capacitor rating is farad

3 0
3 years ago
Other questions:
  • 6.1.5: weather codehs
    13·1 answer
  • As the driver it is not your responsibility that you are focused on the driving task with any possible distractions minimized. T
    9·2 answers
  • The HR department of a company wants to send out an email informing its employees about an upcoming social event. Which email ap
    11·2 answers
  • You view a portion of a document on the screen through a ____.
    6·1 answer
  • Ned and Mary Ann are saving their files to a CD. When prompted, Ned will click on Burn file to disk, indicate the recording spee
    15·1 answer
  • If the base-10 system stops with the<br> number 9, then why isn't it called<br> base-9?
    15·1 answer
  • Write a single statement that assigns avg_sales with the average of num_sales1, num_sales2, and num_sales3.
    15·1 answer
  • What is the FaFASA4caster used for
    10·1 answer
  • বর্তমান করােনার ন্যায় পরিস্থিতি অর্থাৎ স্বাভাবিক শ্রেণি কার্যক্রম পরিচালনা সম্ভব
    10·2 answers
  • To have a set of command
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!