CSCI 1006 Lecture Notes - Lecture 4: Javac

34 views3 pages
It translates (compiles)
human-readable source code to machine or binary code.
Using javac, source code (.java) is compiled into binary (.class).
All .class files are cross-platform.
Different hardware and operating systems can use Java.
Thus, different versions of Java are not necessary.
(Normally, an application rests above its operating system, which is above its
hardware.)
Java, however, rests upon a jvm (java virtual machine) which is unique for
the operating system being used.]
javac compiles, and java runs.
Miscellanea:
Java can be memory intensive, because of its nature.
Some functions are imported (such as java.io.* and java.util.*), using the
import command.
Every statement ends with “;”.
Every statement not having a “{“ or “}” ends in “;”.
Commenting out text:
/* Many
words. */
// single line.
Javac ignores comments.
As long as .class files are in the same directory, they can reference one another's
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows page 1 of the document.
Unlock all 3 pages and 3 million more documents.

Already have an account? Log in

Document Summary

It translates (compiles) human-readable source code to machine or binary code. Using javac, source code (. java) is compiled into binary (. class). Different hardware and operating systems can use java. Thus, different versions of java are not necessary. (normally, an application rests above its operating system, which is above its hardware. ) Java, however, rests upon a jvm (java virtual machine) which is unique for the operating system being used. ] javac compiles, and java runs. Java can be memory intensive, because of its nature. Some functions are imported (such as java. io. Every statement not having a { or } ends in ; . As long as . class files are in the same directory, they can reference one another"s classes and methods. Java is object oriented, in that it is a collection of objects. Instance variables are what objects have and know. Methods are followed by parentheses ( method( ) ). A class is a blueprint for all objects of the same type.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents