public void write(String s)
Write a string. This method cannot be inherited from the Writer class because it must suppress I/O exceptions.supports only int and String as parameters
print method has higher level of abstraction.
public void print(String s)
Print a string. If the argument is null then the string "null" is printed. Otherwise, the string's characters are converted into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.supports all primitive data types
check this