【笔试题】Java Data Types
2024-08-24 06:38:30
Java 知识测试 Java Data Types
Question 1
Predict the output of the following program.
class Test {
public static void main(String[] args) {
Double object = new Double("2.4");
int a = object.intValue();
byte b = object.byteValue();
float c = object.floatValue();
double d = object.doubleValue();
System.out.println(a + b + c + d);
}
}
A. 8
B. 8.8
C. 8.800000095367432
参考答案
```
C
```
C
```
最新文章
- Unable to extract 64-bitimage. Run Process Explorer from a writeable directory
- 【转】我是如何在SQLServer中处理每天四亿三千万记录的
- java连接sql server2005
- ubuntu 14 配置 tomcat
- 什么是 IntentService
- Java虚拟机(JVM)中的内存设置详解
- free 命令解释
- 第一个shell编程,输出hello world!
- 2015年6月股灾永远载入A股史册
- FZU 2144 Shooting Game(数学+贪心)
- jvm 线程实现机制
- linq转载
- 使用缓存方式优化递归函数与lru_cache
- 【python】安装pymongo时出错
- ucore-lab1-练习4report
- Silverlight中Image控件Stretch属性的四种值比较
- iOS设计模式-原型模式
- 阿里八八Alpha阶段Scrum(9/12)
- imperva—waf 敏感字段显现
- Unity3d + PureMVC框架搭建
热门文章
- Generative Adversarial Networks overview(4)
- (4)给树莓派安装中文输入法Fcitx及Google拼音输入法
- Frightful Formula Gym - 101480F (待定系数法)
- kuma 学习二 centos 安装
- 常用方法 DataTable转换为Html
- Linux禁止ping和开启ping的方法
- Nginx目录文件列表显示
- jmeter-可视化的非GUI模式
- C# 序列化与反序列化Serialization之Json Xml Binary Soap JavaScript序列化
- vue路由的异步加载(懒加载)方法