中国系统校园招聘笔试题

综合知识·Java工程师 · 历年真题改编 · 题号 41887
多选题综合知识Java工程师难度 3真题改编 · 2023中大厂

题目

下列代码输出结果为1的是

选项3 个

Aint cestcCount=0; new Thread( ()->{ cestcCount++; } ).start();
BInteger cestcCount=0; new Thread( ()->{ System.out.println(cestcCount+1); } ).start();
CAtomicInteger cestcCount=new AtomicInteger(); new Thread( ()->{ System.out.println(cestcCount.addAndGet(1)); } ).start();
🔒 答案与解析:登录后可查看本题答案、解析与考点讲解,并可在线作答自动判分 登录 / 注册
‹ 上一题 全部专题 下一题 ›

同类型题目综合知识·Java工程师 · 继续练习

题目免费浏览 · 整套练习与模拟考登录后开始 · 答案与解析登录后可见