6. Let us code !!!
• 1st :
install Java Development Kit “JDK”
• 2nd :
what about IDE : “Netbeans” or “Eclipse” ?
• 3rd :
We must know how to create our first java project ! :D
10. Variables
int a , b, c; // Declares three integers, a, b, and c.
int a = 10, b = 10 ; // Example of initialization
byte B = 22; // initializes a byte type variable B.
double pi = 3.14159; // declares and assigns a value of PI .
char a = 'a'; // the char variable a is initialized with value 'a‘
30. Overload in java
The conditions for method overloading :
1.) The number of parameters is different for the methods.
2.) The parameter types are different ,
(like changing a parameter that was a float to an int).
31. Overload in java
How to NOT overload methods :
1. Just changing the return type of the method. If the return type
of the method is the only thing changed, then this will result in
a compiler error.
1. Changing just the name of the method parameters, but not
changing the parameter types. If the name of the method
parameter is the only thing changed then this will also result in
a compiler error.