import java.io.*;
public class TypeTransition{
public static void main(String args[]){
char a = 'h';
int i = 100;
int j = 97;
int aa = a + i;
System.out.println("aa="+aa);
char bb = (char)j;
System.out.println("bb="+bb);
}
}
如果输出结果的第二行为 bb=a ,那么第一行的输出是
A. ) aa=I
B. ) aa=204
C. ) aa=v
D. ) aa=156
[单选题]( 16 )请阅读下面程序import java.io.*;public class TypeTransition {public static void main ( String args[] ){char a = 'a' ;int i = 100 ;long y = 456L ;int aa = a + i ;long yy = y-aa ;System.out.print ( "aa = "+aa ) ;System.out.print ( "yy = ” +yy ) ;}}程
[单选题]阅读下面程序import java.io.*;public class ByteStream Test{public static void main(String[] a){int[] myArray = {10,20.30,40};try{D.ataOutputStream dos = new DataOutputStream(new _________________( " ints.dat " ));for (int i=0;i<myArray.length;i++)dos.w
[单选题]阅读下面程序 import java.io.*; public class TypeTransition{ public static void main(String args[]){ char a='h'; int i=100; int j=97; int aa=a+i; System.out.println("aa="+aA) ; char bb=(char)j; System.out.println("bb="+bB) ; } } 如果输出结果的第二行为bb=a,那么第一行的
[单选题]阅读下面程序 import java.io.*; public class ByteStreamTest { public static void main(String[] A) { int [] myArray = {10,20,30,40 }; try{ DataOutputStream dos = new DataOutputStream ( new______ ("ints.dat")); for (int i=0; i<myArray, length; i++) dos.writ
[单选题]阅读下面程序: import java.io.*; public class TypeTransition { public static void main(String args[]) { char a='a'; int i=100; long y=456L; int aa=a+i; long yy=y-aa; System.out.print("aa="+aa); System.out.print("yy="+yy); } } 程序运行的结果是A.aa=197 yy=259B.
[单选题]阅读下面程序 import java.io.*; public class ExceptionCatch { public static void main(String args[]) { try { FileInputStream fis=new FilelnputStream("text"); System.out.println("content of text is:"); } catch(FileNotFoundException e) { System.out.printl
[单选题]阅读下面程序 import java.io.*; public class TypeTransition { public static void main(String args[]) { char a='h': int i=100; int j=97; int aa=a+i: System.out.println("aa="+aa); char bb=(char)j; System.out.println("bb="+bb); } } 如果输出结果的第二行为bb=a,那么第一行的
[单选题]阅读下面程序 import java.io.*; public class ByteStreamTest { public static void main(String[] args) { int[] myArray={10,20,30,40}; try { DataOutputStream dos=new DataOutputStream (new ______("ints.dat")); for(int i=0;i<myArray.length;i++)dos.writeInt(myA
[单选题]阅读下面程序 import java.io.*; public class ByteStreamTest { public static void main(String[] A) { int [] myArray = {10,20,30,40 }; try{ DataOutputStream dos = new DataOutputStream ( new______ ("ints.dat")); for (int i=0; i<myArray, length; i++) dos.writ
[单选题]( 21 )请阅读下面程序import java.io. *;public class ExceptionCatch{public static void main ( String args[] ){try {F.ileInputStream fis=new FilelnputStream ( "text" ) ;System.out.pfntln ( "content of text is : ” ):} catch ( FileNotFoundException e ){System