Blog Introductions
In this blog contains tutorials about HTML Tutorials, Python Tutorials, CSS Tutorials, How to, PHP Tutorials, Java Tutorials, C++ Tutorials, Tutorials, Examples, Source code,Learning,
Tips and Software development services. Java Basic Syntex and Structure | Java tutorials Bestitworriors
Java Basic Syntex and Structure
Java Basic Syntex and Structure | Java tutorials Bestitworriors - Java file having extenssion filename.java.Java langauge is similar to c++ and c#.In java langauge all work done in class.Inside class we declear main function of class that run first in class and all other start up code written in the java main function.Java support single line and multiline comments. Single line comments written as //Comments and multiline comments written as /* multiple lines */. Java use System.out.prientln("Output") to print the output.
Some Key Points of Java Basic Syntex and Structure
- Jva file having extenssion filename.java
- Java syntex is similar to c++ and c#
- In java all work done in the class
- Inside the class first run main function
- Java support single line and multiline comments.
- Java use System.out.prientln("Output") to print the output.
- In java class first startup function is main syntex as public static void main(String[] args){// Code here }
Code
public
class bassics {
public static void main(String[] args) {
System.out.println("Best it Worrior is Best Platform");
// Comments
/ *
Multilines Comments
* /
}
}
OutPut
Best it Worrior is Best Platform
0 Comments