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
neonofarm [45]
3 years ago
8

Which of the following does not correctly declare an ArrayList?

Computers and Technology
1 answer:
kotegsom [21]3 years ago
6 0

Answer:

Option b. ArrayList‹Integer› = new ArrayList‹Integer›(10) does not correctly declare an ArrayList.

<u>Explanation</u>:

ArrayList in Java dynamically stores elements in it. It also called as re- sizeable array as it expands  in size when elements are added and decreases when an element is removed from it. This array list class also allows to use duplicate and null values.

The syntax for creating Array list is as follows

ArrayList<Type> obj = new ArrayList<Type>()

Type  specifies the type of ArrayList like Integer, Character, Boolean etc, and obj is the object name. But in the option b ArrayList‹Integer› = new ArrayList‹Integer›(10)  object name is missed and not specified.

You might be interested in
Determine the number of bytes necessary to store an uncompressed binary image of size 4000 × 3000 pixels
vladimir2022 [97]

Answer:  1,500,000 bytes.

Explanation:

If we assume that we have an image of 4000 pixels (picture elements) wide, by 3000 pixels height, a complete uncompressed image will be represented by 4000*3000= 12,000,000 pixels.

Now, if we are talking of a binary image, this means that each pixel will have, as a maximum, two possible values, so we will need only one bit per pixel.

This means that  we will need to store 12,000,000 bits.

As we know, 1 byte=8 bits.

So, we will need 12,000, 000/8 bytes ⇒ 1,500,000 bytes in order to store an uncompressed binary image of size 4000 x 3000 pixels.

3 0
3 years ago
HELP ME PLEASEEEE
GalinKa [24]

Answer:

hey look I don't think anyones doing a full on essay for 5 points

Explanation:

i could for a bit more

8 0
3 years ago
Wyatt has a database to keep track of his enormous collection of videos. How can Wyatt find the details for the game Lost on Mar
Zinaida [17]

Answer:

edit filter query

Explanation:

plz give branilest hope this helps

5 0
2 years ago
Read 2 more answers
Write the code that creates a public class named Vehicle that has one private data member. The private data member is an integer
maxonik [38]

Answer:

Following are the program in java

public class Vehicle // class vehicle of type public

{

private int modelYear;

Vehicle() //  no parameters

{

modelYear=2018;

}

vehicle(int t)  // update the value of modelYear

{

modelYear=t;

}

public static void main(String args[]) // main function

{

vehicle ob=new vehicle();// creating instance

vehicle ob1=new vehicle(45);

}

}

Explanation:

Here we create a private data member i.e modelYear of integer type .

We create default constructor and initializes modelYear variable  with 2018.

we create a parametrized constructor  which update the value of modelYear variable.

From the main function we call both the constructors.

3 0
3 years ago
A ____ document identifies the purpose of the program being developed, the application title, the procedures to be followed when
telo118 [61]

Answer:

requirements

Explanation:

<h2><u>Fill in the blanks</u> </h2>

A <u>requirements</u> document identifies the purpose of the program being developed, the application title, the procedures to be followed when using the program, any equations and calculations required, any conditions within the program that must be tested, and any notes and restrictions that must be followed by the program.

7 0
3 years ago
Other questions:
  • What is the maximum amount that OSHA can impose as a penalty on an employer for each Willful violation?
    11·1 answer
  • Which kind of software allows users to draw pictures, shapes, and other graphical images with various on-screen tools such as a
    14·1 answer
  • Write a function SwapArrayEnds() that swaps the first and last elements of the function's array parameter. Ex: sortArray = {10,
    8·1 answer
  • During which phase of film making does the team outline their vision for the film?
    5·1 answer
  • Two of the major sources used today for obtaining information to create computer maps are satellites and _____________.
    11·2 answers
  • Sally has 4 quarters, 2 dimes, 6 nickels, and 10 pennies.
    13·2 answers
  • 14. Which of the following is NOT a
    6·2 answers
  • Question 8 (True/False Worth 3 points)
    15·1 answer
  • In Super Mario Bros., you become Mario and your friend is Mario’s younger brother Luigi. Your job is to race through Mushroom Ki
    10·1 answer
  • Question 2 of 10
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!