CS 140 Lecture Notes - Lecture 2: C Syntax, Javac
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.