Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
yeminch
exam
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
exam
/
corejava.exm
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
50 lines (50 loc) · 1.39 KB
master
Breadcrumbs
exam
/
corejava.exm
Copy path
Top
File metadata and controls
Code
Blame
50 lines (50 loc) · 1.39 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
指出下面语句没有编译错误的是:
long n = 999999999999;
int n = 999999999999L;
<T>long n = 999999999999L;
double n = 999999999999;
下列关于数组的声明错误的是:
int[] arry = new int[100];
<T>int[3] arry = {1,2,3};
int[] arry = new int[]{1,2,3};
int[][] arry = new int[3][];
语句System.out.println(1+2+"java"+3+4)输出的结果是:
<T>3java34
12java34
3java7
12java7
Java语言中int类型标示整数的最大范围是:
-2147483647~ 2147483647
<T>-2147483648 ~2147483647
-32767~32767
-32768~32767
Java语言中字符串“学Java”所占的内存空间是:
6个字节
7个字节
<T>10个字节
11个字节
对JDK描述错误的是:
运行Java程序只要有JRE环境就可以,不一定需要全部JDK的功能
JDK中包括JVM、核心类库、Java开发工具(java,javac)等
<T>JDK本身也是平台无关的,不同的操作系统安装的JDK是一样的
JDK的全称是 Java Development Kit
对CLASSPATH描述正确的是:
设置CLASSPATH用于指示操作系统找到JDK命令,如java或javac
CLASSPATH设置不对,可能会导致java命令失败,但不会导致javac失败
CLASSPATH的设置中可以包含目录路径但不可以包含文件路径
<T>java命令可以通过 -cp 参数指定类路径
下面Java语言方法的说法错误的是:
方法调用时参数类型必须符合方法的定义
方法只能声明一个返回值
如果方法没有返回值必须声明返回为void
<T>如果方法定义为返回void,则方法中不能出现return语句
下面不属于Java语言特点的是:
平台无关
面向对象
<T>支持指针操作
垃圾回收机制
关于数组的说法正确的是:
数组类型属于基本类型
数组创建后,其的长度可以改变
int[]类型的变量可以直接赋值给long[]类型的变量
<T>数组的长度必须在创建是指定
You can’t perform that action at this time.