Which of the following assignment statements is assigning a character? 1. char city = "B"; II. char state = "Johor"; III. char country = 'M'; IV. char test = '1';

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 6RQ
icon
Related questions
Question

pls answer 

Which of the following assignment statements is assigning a character?
1. char city
"В";
II. char state =
"Johor";
III. char country
'M';
IV. char test =
'1';
А.
Il and IV
All of the above
С.
Il and III
D.
III and IV
Е.
I and III
B.
Transcribed Image Text:Which of the following assignment statements is assigning a character? 1. char city "В"; II. char state = "Johor"; III. char country 'M'; IV. char test = '1'; А. Il and IV All of the above С. Il and III D. III and IV Е. I and III B.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Data Binding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning