Get 2 days of premium access
Study Guides (380,000)
US (220,000)
UMD (10,000)
CMSC (1,000)
Study Guide

CMSC 131- Final Exam Guide - Comprehensive Notes for the exam ( 49 pages long!)


Department
Computer Science
Course Code
CMSC 131
Professor
Pedram Sadeghian
Study Guide
Final

This preview shows pages 1-3. to view the full 49 pages of the document.
UMD
CMSC 131
FINAL EXAM
STUDY GUIDE

Only pages 1-3 are available for preview. Some parts have been intentionally blurred.

Only pages 1-3 are available for preview. Some parts have been intentionally blurred.

CMSC131 Lecture 1: Java Introduction
What is Java?
Java is a high level programming language designed by Sun Microsystems and released in
1995. Java is designed to be portable, meaning it can be written once and run anywhere. This
means java code can be run on any machine capable of supporting Java without regards to
specifications.
Hello World
The first computer program anyone learns is the simple ‘Hello World” program. This is just a
program that prints the line “Hello World”.
public class MyFirstJavaProgram {
public static void main(String []args) {
System.out.println("Hello World");
}
}
The output is pretty boring:
Hello World
Properties of Java
Object Oriented- This means that the programming focuses on the object we want to
manipulate rather than the logic that allows us to manipulate such objects. For example,
a person object has a name, age, gender, etc.
Platform Independent- This means we can run Java on any machine. It is not bound by a
platform specific machine like C or C++.
Simple to learn- If you understand the basics of OOP, you can learn Java.
Secure- Java is very secure so you can program without worrying about any viruses or
malware.
Architecture neutral-This just means Java doesn’t care what processor your computer
has as long as it supports the Java Runtime environment.
find more resources at oneclass.com
find more resources at oneclass.com
You're Reading a Preview

Unlock to view full version

Only pages 1-3 are available for preview. Some parts have been intentionally blurred.

Robust- This means Java checks for errors during compile time and runtime in order to
give you the best possible program debugging.
Multithreaded- Meaning you can write a java program that does many things at the same
time.
Interpreted- The code is translated and not stored on your computer. This means
execution is faster and more efficient
Distributed- Java is designed to be distributed over the Internet.
Dynamic- Java is very adaptable since new updates are being constantly released. This
also means Java is very stable with very few bugs..
The next chapter, we will focus on the syntax of Java.
find more resources at oneclass.com
find more resources at oneclass.com
You're Reading a Preview

Unlock to view full version