当前位置:考试网  > 试卷库  > 计算机类  > 等级考试  > 计算机二级  > Web程序设计  > swtich是否能作用在byte上,是否能作用在long上,是否能作用在String上?
试题预览

swtich是否能作用在byte上,是否能作用在long上,是否能作用在String上?

查看答案
收藏
纠错
正确答案:

答:switch (expr1 )中, expr1 是一个整数表达式。因此传递给 switch 和 case 语句的参数应该是 int 、 short 、 char 或者 byte 。long,string 都不能作用于 swtich

答案解析:

暂无解析

你可能感兴趣的试题

Mobilephonesandtheinternetplayanimportantpartinthewaywhichpeoplerelatetooneanothersocially.Doyouthinktheadvantagesoutweighthedisadvantages?

.Forthesakeofourlong-termfriendship,wearegoingtoacceptthepricereductionontheradios.Howabout6%off?

工作压力过重会导致抑郁,焦虑,甚至自杀。

Notreally.Itisshrewdbusinessoperations.

Weareintroducingourselvesasoneoftheleadingexportersofthesamelineofbusiness.

热门试题 更多>
试题分类: 自考
练习次数:0次
试题分类: 自考专业(护理)
练习次数:0次
试题分类: 学前教育行政与管理
练习次数:5次
试题分类: 自考
练习次数:0次
试题分类: 内科护理学(一)
练习次数:3次
试题分类: 学前教育行政与管理
练习次数:3次
试题分类: 自考专业(护理)
练习次数:0次
试题分类: 自考
练习次数:2次
试题分类: 社区工作人员
练习次数:0次
试题分类: 社区工作人员
练习次数:0次
扫一扫,手机做题