Java Lesson 1: 'Hello World' (codecademy)
अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!
javac Filename.java
compiles the code
curly braces {}
define the scope of our classes and methods
java Filename
executes a .class file
semicolons
mark the end of a statement
/ asterick and asterick /
multi-line comments
System.out.println()
prints output followed by a new line
System.out.print()
prints output without a new line
class
represents one real-world idea
main()
runs the tasks of the program
//
short comments
out
short for 'output'
println
short for 'print line'
whitespace
used for humans to read code easily