English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

a."number645"
b."number105"
c."number50"
d.number620"
e."number26"

2007-10-07 19:32:11 · 2 answers · asked by enziguri2000 1 in Computers & Internet Programming & Design

2 answers

c. "number" is a String, + is a string concatenation and * is a integer only operation. So you have two string concatenations putting together "number" "6" and "20". You can test it with this programm call the file Main.java and put following code into it:

public class Main(){
public static void main(String[] args){
System.out.println("number"+6+4*5);
}
}

Compile and run and you will see the result in the console. Hope this helps

2007-10-07 19:38:13 · answer #1 · answered by cyngus65 3 · 0 0

The answer is d.

But you know that now because you have run the test.

2007-10-08 04:08:46 · answer #2 · answered by AnalProgrammer 7 · 0 0

fedest.com, questions and answers