Introduction to Java and BlueJ(1) (2)
Introduction to Java and BlueJ(1) (2)
The if-else is a logical situation , where either of the two actions are to be performed depending on the
specific condition. If the condition evaluates to true then the statements written inside the body of the if
block are executed, otherwise the statements in the else block get executed.
1. What is a program?
Program is a set of instructions.
3. Who is a programmer?
The person who creates these programs is known as a Programmer.
6. What is a translator?
An interpreter or compiler is a translator, which translates the program written in high level language into
machine level language.
7. What is Java?
Java is an Object Oriented Programming Language developed in January 1996 by a team of Sun
Microsystems, headed by James Gosling.
9. What is an applet?
An applet is a Java program that can be embedded into a web page. Applets are used to make the web site
more dynamic and entertaining.
Initialization of a variable
Initialisation is a process of assigning some initial value to a variable.
int age=15;
float av=90.23;
Character char
Boolean boolean
Integer int
Fractional float
double