This is the sample java file “Phpsolutions.java” to be executed on linux command line…..

import java.lang.*;
import java.io.*;

public class Phpsolutions
{

public static void main(String args[])
{
System.out.println(”phpsolutions.co.in”);
}

}

Output:

[root@localhost ~]# javac Phpsolutions.java
[root@localhost ~]# java Phpsolutions
phpsolutions.co.in
[root@localhost ~]#