3.1.21

How to run Java program

To run the java program first write the code in notepad and save it with the extension .java

 and then open command prompt and compile the program (eg : javac Simple.java) After the compilation, to run the java code we need to call the Java interpreter ,to call the java interpreter we use java command and u need to [ass the filename you know which contains the byte code(eg:- java Simple) 



  

No comments:

Post a Comment

JAVA program pattern 2

import java.util.Scanner; public class pattern3 { public static void main(String args[]) { int i,j; Scanner sc=new Scanner(System.in); Syste...