How to execute Java programme-TCCI, Ahmedabad
TCCI-Tririd Computer Coaching Institute is one of the best computer institute in bopal-Ahmedabd.
Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems’ Java platform (Java 1.0 [J2SE]).
Java isObject-oriented, Platform independent, Simple, Secure, Architectural-neutral, Portable,Robust,Multithreaded,Interpreted,Highperformance,Distributed,Dynamic language.
Java follows “Write Once, Run Anywhere”.
You need following tools to run java programme.
- Linux 7.1 or Windows xp/7/8 operating system.
- Java JDK 8
- Microsoft Notepad or any other text editor
- First write your source code into notepad or any other text editor.
- Save source code as filename.java.
- Open a command prompt window and go to the directory where you save your class.
- Type javac filename.java, press enter to compile the programme.
- If there is any error it will display, otherwise it will take you to next line.
- Now to run the programme, type java filename.
- There is now output will be displayed
public class MyFirstProgram {
public static void main(String []args) {
System.out.println(“Wel-come to TCCI”);
}
}
Compiling the source code….
$javac MyFirstProgram.java
Executing the program….
$java MyFirstProgram
O/p:
Wel-come to TCCI
To learn more contact @ 9825618292
For More Information About How to execute java programme? , computer coaching ,java course, tcci-ahmedabad