How to Write First Java Program |How to Compile and Run Java Program |Java Tutorial For Beginners #4
For Java Notes , feel free to contact me.
Please send me email at sumitsvideosofficial@gmail.com.
Topic Covered :
-------------------------
Software required to write java Program :
---------------------------------------------------------------
Java Software (Install jdk8 or jdk11 on your machine)
Text Editor - (Notepad, Notepad++) OR IDE - (Eclipse, NetBeans, IntelliJ IDEA, etc)
Steps to design First Java Program :
--------------------------------------------------------
write the program (Notepad++)
save the program (with .java extension)
compilation process (use javac compiler to compile code) - .class file(bytecode)
execution process (use java to execute program)
Class contains :
------------------------
variables
methods
constructors
block(instance & static blocks)
Naming Convention Java :
----------------------------------------
Pascal naming Convention :
------------------------------------------
starts with upper case & every inner word starts with upper case.
class and interface uses Pascal naming Convention.
eg - class HelloWorld
Camel Case naming Convention: methods(functions),variable :
-------------------------------------------------------------------------------------------------
starts with lower case & every inner word starts with upper case.
variables and methods name uses camel case convention.
eg. int mobileNumber;
void calculate()
Program :
----------------
class Demo {
public static void main(String arr[]) {
System.out.println("Hello Java");
}
}
Source Code - Demo.java
Compilation - javac Demo.java - Demo.class (bytecode)- bytecode is compiled code in java.
Execution - java Demo
output - Hello Java
JVM is responsible to execute our program.
In this program we have used two predefined classes - System, String
& these classes present in java.lang package
If we are using these classes then we should import java.lang package.
java.lang - Default package in java
Don’t Forget To Like, Comment, Share & Subscribe !!
Keep Learning ! 😊
Important Playlist:
🆓 Software Installation For Developer : • Software Installation for Developer
🆓 JDBC Complete Tutorial : • JDBC Tutorial(Java Database Connectivity)
🆓 Core Java Tutorial : • Core Java Tutorials For Beginners
**************************************| Thanks |********************************
#corejava #oopsconcept #sumitsvideos #sumitsingh
Related Searches :
how to write your first java program
java hello world program
how to compile & run java program in command prompt
first java program
write java code
first java program in notepad++
basic java program
На этой странице сайта вы можете посмотреть видео онлайн How to Write First Java Program |How to Compile and Run Java Program |Java Tutorial For Beginners #4 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Sumit S Videos 28 Апрель 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 293 раз и оно понравилось 9 зрителям. Приятного просмотра!