Monday 14 March 2016

How to execute Java programme-TCCI, Ahmedabad



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
1. First write your source code into notepad or any other text editor.
2. Save source code as filename.java.
3. Open a command prompt window and go to the directory where you save your class.
4. Type javac filename.java, press enter to compile the programme.
5. If there is any error it will display, otherwise it will take you to next line.
6. Now to run the programme, type java filename.
6. 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
 

No comments:

Post a Comment