How To Execute Java Programme?

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-language-course-in-ahmedabad1

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.
  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…
$javac MyFirstProgram.java

Executing the program….
$java MyFirstProgram

O/p:
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

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s