How to execute java programme tcci, ahmedabad

Page 1

How to execute Java programme-TCCI, Ahmedabad TCCI-Tririd Computer Coaching Institute is one of the best computer institute in bopalAhmedabd. 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"); } }


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.