https://gcreddy.info/java-tutorial-for-beginners/
Java Language Syllabus
https://gcreddy.info/java-language-syllabus/
1. Introduction to Java Programming
https://gcreddy.info/introduction-to-java-programming/
2. Java Environment Setup
https://gcreddy.info/java-environment-setup/
3. Java Keywords and Identifiers
https://gcreddy.info/java-keywords-and-identifiers/
4. Java Program Structure
https://gcreddy.info/java-program-structure/
5. Java Comments
https://gcreddy.info/java-comments/
6. Java Data Types
https://gcreddy.info/java-data-types/
7. Java Variables
https://gcreddy.info/java-variables/
8. Operators in Java
https://gcreddy.info/operators-in-java/
9. Java Control Flow Statements
https://gcreddy.info/java-control-flow-statements/
10. Java Strings
https://gcreddy.info/java-strings/
11. Arrays in Java
https://gcreddy.info/arrays-in-java/
12. Java ArrayList
https://gcreddy.info/java-arraylist/
13. Java Input and Output
https://gcreddy.info/java-input-and-output/
14. Java Input and Output
https://gcreddy.info/java-input-and-output/
15. Java User Defined Methods
https://gcreddy.info/java-user-defined-methods/
16. Java Built-in Methods
https://gcreddy.info/java-built-in-methods/
17. Exception Handling in Java
https://gcreddy.info/exception-handling-in-java/
18. Java Object-Oriented Programming
https://gcreddy.info/java-object-oriented-programming/
Java Programming Syntax
1. Java is a case sensitive language
Note: All Java keywords and reserved words are small letters
if, for, public, main, true, false, null…
2. The first letter of class name should be in upper case
sample //Incorrect
Sample //Correct
Firstprogram //Correct
FirstProgram ////Correct
3. Java Method names should start with lower case
4. Java program file name should exactly match with class name
5. Java program execution starts from the main method, which is mandatory in every Java program
6. Every statement /step should end with a semicolon (;)
7. Code blocks (conditional, Loop, Method, etc…enclosed with {},
8. Java supports Explicit declaration of Data Types
In Java,
int sno =123;//Correct
int x;//Correct
char a=’A’; //Correct
boolean y=true;
abc =100; //Incorrect
In VBScript
Dim city
city =100
.
city =”India”
.
city=1.23
.
city=#10/10/2010#
9. Java supports Explicit declaration of Variables
int a, b;
a=10;
b=20;
c=30;//Incorrect
In VBScript
Dim a
a=100
b=200 ‘Correct