1-COE312 Lecture - Introduction to Java
1-COE312 Lecture - Introduction to Java
Omar Arif
COE312
Slides adapted from Dr Imran Zualkernan
Java is very similar to C++
It is an object-oriented language
Independent of host platform
The Java compiler takes Java code and compiles it to
Java Java Bytecode which is a cross-platform format
Java virtual machine (JVM) takes the byte code and
converts it into native code
Tutorial:
https://www.w3schools.com/JAVA/default.asp
Java Tutorial Compiler:
https://www.onlinegdb.com/online_java_compiler
For the course we will use the Eclipse compiler
available for free download at.
https://www.eclipse.org/downloads/packages/
Cover the
following topics
in the tutorial
Cover the
following in OO
Programming
in Java
Java has inheritance but does not support multiple
inheritance.
Java is strictly pass by value.
Similar to namespaces, Java has the concept of a
Package that is a collection of classes.
There is no delete operator. A program called
garbage collector cleans up memory
Review automatically.
Default access levels in Java are different than C+
+.
Java default is package-private while in C++ is
public