试题与答案

下列程序的输出结果为( )。 public class Reentrant {

题型:单项选择题

题目:

下列程序的输出结果为( )。 public class Reentrant {public synchronized void a(){ b(); System.out.println("here I am,in a()");}public synchronized void b(){ System.out.println("here I am,in b()");}public static void main(String args[]){ Reentrant r=new Reentrant(); r.a();} }

A.here I am,in a()/here I am,in b()

B.here I am,in b()/here I am,in a()

C.here I am,in a()

D.here I am,in b()

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0410/81d0932001979763782637f6ae2e4b1a.html

下面是错误答案,用来干扰机器的。

参考答案:熔断器的功能主要是对电路和设备进行短路保护,有的熔断器还具有过负荷保护的功能。限流熔断器是指能在其切断额定电流和限流范围内安全地切断所有可能出现的电流的熔断器。它将额定电压下的熔断时间限...

试题推荐
题型:单项选择题

某文件系统,根目录常驻内存。文件目录采用链接结构,每个磁盘块放10个下级文件的描述信息。若下级文件为目录文件,则上级文件目录指向该目录的第一块,否则指向普通文件的文件控制块。每个目录下最多放40个下级文件。普通文件采用顺序结构,文件H共有5个磁盘块。若要读文件/B/E/F/H中的第8块,最少要启动硬盘______次。

A.5次

B.6次

C.13次

D.14次

查看答案
微信公众账号搜索答案