什么叫java语言?让我们一起了解一下吧!
Java是一门面向对象编程语言,吸收了C++语言的各种优点,具有功能强大和简单易用两个特征,可以编写桌面应用程序、Web应用程序、分布式系统和嵌入式系统应用程序。Java语言作为静态面向对象编程语言的代表,实现了面向对象理论,允许程序员以简单的思维方式进行复杂的编程,Java具有简单性、面向对象、分布式、安全性、平台独立与可移植性、动态性。
拓展:Java发展方向和就业岗位
Java可以从以下几个方面发展:企业级应用开发、网站开发、移动领域/游戏开发/Android开发、软件开发、嵌入式领域、大数据等。
Java可以从事这些岗位:Java软件工程师、J2EE软件工程师、数据库开发工程师、系统开发工程师、WEB开发工程师、网页设计师、游戏开发工程师、软件测试工程师、项目管理工程师等。
今天的分享就是这些了,希望大家喜欢。
Java教程之包装类详解
1. 包装类概述
包装类就是这8种数据类型所对应的引用数据类型,分别是:
int a = num;
Integer a = 127;Integer b = 127;System.out.println(a == b);Integer c = Integer.valueOf(127);System.out.println(a == c);Integer d = new Integer(127);System.out.println(a == d);Integer x = 128;Integer y = 128;System.out.println(x == y);
if (i >= IntegerCache.low && i <= IntegerCache.high)
return IntegerCache.cache[i (-IntegerCache.low)];
return new Integer(i);
}
// high value may be configured by property
int h = 127;
String integerCacheHighPropValue =
VM.getSavedProperty("java.lang.Integer.IntegerCache.high");
if (integerCacheHighPropValue != null) {
try {
h = Math.max(parseInt(integerCacheHighPropValue), 127);
// Maximum array size is Integer.MAX_VALUE
h = Math.min(h, Integer.MAX_VALUE - (-low) -1);
} catch( NumberFormatException nfe) {
// If the property cannot be parsed into an int, ignore it.
}
}
high = h;
// Load IntegerCache.archivedCache from archive, if possible
CDS.initializeFromArchive(IntegerCache.class);
int size = (high - low) 1;
// Use the archived cache if it exists and is large enough
if (archivedCache == null || size > archivedCache.length) {
Integer[] c = new Integer[size];
int j = low;
for(int i = 0; i < c.length; i ) {
c[i] = new Integer(j );
}
archivedCache = c;
}
cache = archivedCache;
// range [-128, 127] must be interned (JLS7 5.1.7)
assert IntegerCache.high >= 127;
}