Which of these correctly defines a field in a class?

• private INT count;
• public INT count;
• private int count = ”HI”;
• private int count;

The primitive types are all lowercase. The last one is the correct one. You can’t assign a String to an int type.

Computer Science & Information Technology

You might also like to view...

It is not important to backup a database before modifying the structure of an existing database

Indicate whether the statement is true or false

Computer Science & Information Technology

The SmartArt ________ pane displays an outline view for typing text items that are then placed in the SmartArt diagram

Fill in the blank(s) with correct word

Computer Science & Information Technology