Java Lect 001
Java Lect 001
Syllabus
Structure of Java programs
Loop constructs
Arrays, character and string handling Functions (if time permits)
Bruce Eckel
3. Richard G Baldwins Introductory Java Programming
Some Basics
Q. What is a program? Ans. A sequence of instructions that a computer can interpret and execute. Q. Why Java and not Hindi / Marathi / English? Ans. Since, so far, computer is not intelligent enough to understand natural languages.
Example Program
First.java class First {
- Case sensitivity
The best way to learn programming is writing a lot of programs on your own.
Some Assignments
1. Write a program which prints the following information about at least 5 persons:
Each entry should be on a separate line. 2. Write a program that prints the following line on the screen along with quotes. Can we print \ with System.out.println() statement?
End
Thank you