Lec 03 Java Fundamental of Computing
Lec 03 Java Fundamental of Computing
After lecture 2, there were many students who said that they could not understand the later part of the
lecture. So in this lecture, I explained most of the stuff from lecture 2 again. I explained from scratch
the concept of variable - both declaration as well as operations on variable. The analogy between box
and variable was stressed once again. So if you have understood lecture 2 notes (also provided on the
website), then the only new things of lecture 3 were the following :
Following was a brief overiview of the above topics during the lecture.
• Fractional numbers (like 2.0, -3.6, 56.9675). The java types for these numbers are
– float
– double
boolean
• Characters (the key board characters and many more). The JAVA type for character is
char
We shall consider examples of the above data types in future lectures. However, please note that the rules
for declaring and updating the variables of the above data types is same as that of the integer variables
which were discussed at length in the lecture 2 and revised in this lecture as well.
• it must begin with some letter : a-z, A-Z, or the characters ,$.
• Each subsequent character must be either a letter, a digit 0-9, or characters ,$.
i34 ab myname