Java new Batch - Class 19- First Java Program explanation

preview_player
Показать описание
You can learn Java with me as the Java Programming language is being made easily. It would take a period of minimum three months and maximum 6 months to master Java. I would recommend you to watch all my videos to crack any software interviews that would require Java Programming language as a primary skill.

Java Program:-
1. How to write a First Java Program?
2. Compilation.
3. Execution.
4. Installing Java Software.
5. Control flow of First Java Program in the Operating System.

What is Java?
Java is a high level programming language which is easily readable by the humans. It is very much close to the understanding. It is used to communicate with the computer. And, a programmers can pass instructions in the form of data with the help of Java and these instructions are interpreted by the machine to give the relevant output as information.

Java Keywords:-
They are the reserved words in Java that is used to declare variables, methods or class.
Keywords are reserved words in Java that serve as a code key. These words can't be used for anything else because they're predefined. They can't be used as a variable name, object name, or any other identifier. There are 51 reserved terms or keywords in Java.
The words "true, false, null" are literals. Still, we cannot use them as identifiers in the program.

What is a class in Java?
A class is one of the keywords which is used to create the blue print of a requirement from which objects are created.
A class is also called as Container which could have properties(Variables) and behaviors(methods).
class House{
//Properties(Variables)
//Behaviours(methods)

}

public - Access Modifier
===================
what is public word in Java?
The public is one of the access modifiers that is used to give the visibility for the class, methods and variables.
These access modifiers are categorized into four types
1. public
2. private
3. default(no modifier)
4. protected.

All the access modifiers are java keywords or Reserved words. But not all the java keywords are not access modifiers.

What is static in first java program?
The static is one of the non- access modifiers in java. It is used to deal with memory allocations. You can access to static variables and static methods without creating an object .There are many non-access modifiers in java.

What is a void keyword in java?
Void is one of the return types. The return type can be primitive type or non-primitive type.
When you are not declaring the primitive types or non-primitive types as return types, than you are suppose to void.

What is main in the first java program?
It is the name of the main method which is the pre-defined. It is pre-defined identifier that cant be changed and cant be used any where in the Java program.
public static void main(String[] anything)
{

}
Рекомендации по теме
join shbcf.ru