String S "Test" //why Capital S' Means It Is A Class in Java. and Specified in Double Quotes
String S "Test" //why Capital S' Means It Is A Class in Java. and Specified in Double Quotes
1. While creating the java project in eclipse project name must be like this: first letter of each word
should be capital letter
2. After creating the project you will find one folder called ‘src’ which means ‘source code’
3. And also we will resource library called ‘JRE’ – java run time environment
4. Package: package means just like a folder, separating the files based on the belongining
functionalities. We manage our classes and files in packages.
5. We must write our code in the form of class in java. We can’t write code without class in java.
6. Class name should have the capital letter for first letter in each word.
7. All the keywords should start with small letter ex: “package”, “class”, “public”
8. Inside the main method we will write our code, main method should be there in our program
and we can’t change the main method.
9. Comments in eclipse: when program is executing then compiler will ignore the commented lines
two types
1. Single line: //
2. Multi line: /*….*/
10. Main method is the starting point of the execution point of the program.
Primitive data types: integer, double, char, Boolean are called primitive data types.
If(b>a) inside the if we always write the Boolean condition i.e., true or false.