Java Full Stack AVtraining-pages-1 (1)
Java Full Stack AVtraining-pages-1 (1)
What is JAVA?
• Case sensitivity
• Java is a case sensitive which means identifier
"Hello" and "hello" would have different meaning in
java.
1. ClassName
• For all classname start with uppercase letter.
2. methodName
• All method starts with lower case letter
Basic Terms
3. ProjectName
• For all project name start with uppercase letter
4. PackageName
• all package name starts with lower case letter .
5. Comments (//)
• These lines are used for comments or writing some
statement that will be not considered during
execution of programs
Basic Terms
6. Signature Bracket ()
• Also called argument bracket
7. + Sign
• This + sign is used for concatenating or we can say
that join the string or statements
Methods in java
1.Regular method-
• a. Static method
• b. Non-Static method
a.Static Method-
• The method which contains static keyword and
used to perform particular task .
• To call static method there is no need to create
object.
Methods in java
b.Non-Static Method
• A method who does not contain static keyword is
known as non-static method.
• What is Object?
• It is Blueprint of class used to call non-static
method .
• How to Create Object in Java using new keyword
Syntax:
ClassName ObjectReferenceVariable = new
Constructor();
Variables in java
1. Default Constructor-
Constructor:
• b. Parameterize constructor -