- Java Programming for Beginners
- Mark Lassoff
- 477字
- 2021-07-02 15:22:40
Features of Java
The following are Java's main features:
- High level and general purpose: Rather than being created to accomplish one very specific task, Java allows us to write computer-readable instructions in an open-ended environment. Because it's not really feasible, or even desirable, for every computer system to have its own specialized programming language, the vast majority of the code is written in high-level, general-purpose languages such as Java.
- Object-oriented: Java is also what we call an object-oriented language. While we won't get into the specifics of objects and classes until a bit later in this book, know for now that objects allow us to define modular entities within our program that make them much more human-readable and much more manageable to create large-scale software projects. A firm grasp of object-oriented concepts is absolutely essential for any modern software developer.
- Platform-independent: Lastly, Java was designed with the intention that it be a write once, run anywhere language. This means if you and I both have systems with Java installed and even if our systems are not normally identical--for example, I'm on a Windows machine and you're on a Mac--a Java program on my machine that I give to you will still run essentially the same on your machine without the need for it to be recompiled.

Traditionally, we would have to recompile a program for every system that it was going to run on because all systems have a different idea of what their machine code should look like. Java circumvents this issue by compiling all Java programs to the same type of interpreted code called bytecode.
A compiled Java program in bytecode can be run by any system in which Java is installed. This is because when we install Java on your system, we also install a Java virtual machine with it that's specific to that system. It is this machine's responsibility to convert the bytecode into the final instructions that head to the processor in that system.
By making it the system's responsibility to do this final conversion, Java has created a write once, run anywhere language where I can hand you a Java program and you can run it on your machine while being fairly certain that it's going to run in the same manner that it did on mine. This impressive level of cross-platform support on a language as powerful as Java has made it one of the software developing world's go-to tools for quite some time.
- Advanced Quantitative Finance with C++
- JavaScript 網(wǎng)頁(yè)編程從入門(mén)到精通 (清華社"視頻大講堂"大系·網(wǎng)絡(luò)開(kāi)發(fā)視頻大講堂)
- Android 9 Development Cookbook(Third Edition)
- 面向STEM的Scratch創(chuàng)新課程
- Python自然語(yǔ)言處理(微課版)
- Hands-On RESTful Web Services with Go
- Java編程技術(shù)與項(xiàng)目實(shí)戰(zhàn)(第2版)
- Android程序設(shè)計(jì)基礎(chǔ)
- Terraform:多云、混合云環(huán)境下實(shí)現(xiàn)基礎(chǔ)設(shè)施即代碼(第2版)
- Frank Kane's Taming Big Data with Apache Spark and Python
- Node學(xué)習(xí)指南(第2版)
- C++編程兵書(shū)
- C語(yǔ)言程序設(shè)計(jì)習(xí)題與實(shí)驗(yàn)指導(dǎo)
- HTML+CSS+JavaScript網(wǎng)頁(yè)制作:從入門(mén)到精通(第4版)
- JavaScript從入門(mén)到精通(視頻實(shí)戰(zhàn)版)