The Java world
Video: The Java worldThe next language we're going to take a look at is Java. This is heavily influenced by C, but came along over 20 years later. This was released in 1995 and was developed by Sun Microsystems. It is an enormously object-oriented language. It's all about classes and objects and it comes with an enormous library called the Java Class Library. Effectively meaning a whole bunch of prewritten code that you don't have to write. There is an enormous amount of functionality already in there for you.
- Where to go from here
Viewers: in countries Watching now:
Finally, the course compares how code is written in several different languages, the libraries and frameworks that have grown around them, and the reasons to choose each one.
- Writing source code
- Understanding compiled and interpreted languages
- Requesting input
- Working with numbers, characters, strings, and operators
- Writing conditional code
- Making the code modular
- Writing loops
- Finding patterns in strings
- Working with arrays and collections
- Adopting a programming style
- Reading and writing to various locations
- Managing memory usage
- Learning about other languages
The Java world
The next language we're going to take a look at is Java. This is heavily influenced by C, but came along over 20 years later. This was released in 1995 and was developed by Sun Microsystems. It is an enormously object-oriented language. It's all about classes and objects and it comes with an enormous library called the Java Class Library. Effectively meaning a whole bunch of prewritten code that you don't have to write. There is an enormous amount of functionality already in there for you.
It is a high-level language. We don't really have to mess around too much with memory management. It has a built-in garbage collector. Java is a language that uses the hybrid compilation model. It's neither straight compiled nor is it interpreted. It compiles and sends to something called bytecode. One of the reasons for that was the idea of being a very cross-platform language. There was a slogan that Sun used called "write once, run anywhere." Now as it's a partially interpreted language that does mean that people do have to have the interpreter for Java on their machine.
What's called the Java Virtual Machine or JVM. You've almost certainly seen that yourself, that some application on your machine has wanted to install Java. That's probably a good clue that one of the things it's famous for is for desktop applications. You can write a desktop application in Java and have it run on a Mac and have it run on a Windows PC, have it run on a Linux box. Recently, one of the big uptakes in Java was for developing mobile applications that run on the Android platform. So it's a C-based language.
Two are the most popular are Eclipse and NetBeans and because this language is owned by Sun and developed there java.sun.com is the most authoritative website to go to. Sun is now owned by Oracle. So you may be redirected, but you'll always be able to find a lot of information there on getting started and tutorials and the basics of starting to work with Java.
Find answers to the most frequently asked questions about Foundations of Programming: Fundamentals .
Here are the FAQs that matched your search "" :
- Q: Using TextEdit with Mac OS 10.9 Mavericks?
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.