CS 140 Lecture Notes - Lecture 2: C Syntax, Javac

25 views2 pages

Document Summary

Cant assign double to a float or else complier error but works other war round: byte/short- smaller integers fewer bits, everything not primitive is a reference type. You can specify functions with . package or you can import. * imports all: not just initialized you need to create storage. Objects: allow things to be developed at the same time independently so long as the programmers agree on fixed things, getter methods getbalance(); gets balance. Waitforbalance(); waits for a trigger in the balance number java: public static main<=can run this must include main. Jvm allows for a program to compile on any computer. Can run complied code no need for source code. Virtual machines allow for the complation of multiple languages: must be written in plain text using notepad. Complie and syntax errors are easy to fix testing errors not so much. Use java cp . filelocation. filename to test.

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