Computer Science, asked by sahoosuryakanta098, 6 months ago

Give the output of the following.
char character='A';
int x=32,y=2;
System.out.printhln(character+y);
System.out.printhln(character+x);
System.out.printhln((character)(character+x+y));​

Answers

Answered by smokeinjone
1

Explanation:

class demo1 {

public static void main(String args[])

{

String str1 = "java";

char arr[] = { 'j', 'a', 'v', 'a', ' ', 'p',

'r', 'o', 'g', 'r', 'a', 'm', 'm', 'i', 'n', 'g' };

String str2 = new String(arr);

System.out.println(str1);

System.out.println(str2);

}

}

Output:

java

java programming

Similar questions