How to execute Java programme? – Bopal-satellite

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
  3. Open a command prompt window and go to the directory where you save your             class.
  4. Type javac, 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.
  7. 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…


Executing the program….

$java MyFirstProgram

Wel-come to TCCI

To learn more contact @ 9825618292

To Know More About Java Language Course In Ahmedabad, Java Course In Ahmedabad

For More Information Click Here


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s