Lecture 1 - Java Features (cont'd)

Lecture 1 - Java Features (cont'd) - Does null-pointer...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Java Features (cont`d) • Multithreaded - Many threads can run at once in your program - Is built into the language • Thread class • Runnable interface • synchronized keyword • Distributed - Libraries contain support for : • TCP/IP networking (sockets) • Remote Method Invocation (RMI) • CORBA (Common Object Request Broker Architecture) [Don’t worry about] • Enterprise Java Beans (EJB) • Simple - Much simpler than C++ • No pointer arithmetic, operator overloading, pre-processor, etc - Easy to learn =) Robust - Designed to eliminate common programming errors
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Does null-pointer checking Does array bounds checking Exceptions provide a structured way to handle errors Does automatic garbage collection- The compiler does more checking that traditional compilers- The JVM (Java Virtual Machine) does checking before running byte code Secure- The language is structured to limit illegal operations and memory accesses- Byte code is verified by the JVM before it is run- Applets are run in a secure ``sandbox``...
View Full Document

Ask a homework question - tutors are online