单项选择题

下列数据类型转换,必须进行强制类型转换的是( )。

A.byte→int
B.short→long
C.float→double
D.int→char
<上一题 目录 下一题>
热门 试题

单项选择题
下列代码的执行结果为()。 public class Testl{ public static void main (String args[]){ int a=3,b=10: System.out.println((a+ +)*(--b)); }

A.40
B.36
C.30
D.27

单项选择题
下面创建一个新文件对象方法错误的是( )。
A.File myFile;  myFile=new File("mulu/file");
B.File myFile=new file( );
C.myFile=new File("/mulu","filel");
D.File myDir=new file("/mulu");  myFile=new File(Dir"filel");
相关试题
  • 以下关于Java语言继承的说法正确的是()
  • 下列程序输出结果为( )。 public clas...
  • Java程序的执行过程中用到一套JDK工具,其...
  • Java语言有多种实现的机制,下列( )技术...
  • 下列( )是在当前主机的指定端口上启动远...