Please reframe the question divya.
As Fred said, Arguments passed in from the command line are strings, and passed into a String array (public static void main(String args))
We have different types of data types you can use for certain operations.
if you want to add two numbers that should be 2+3 not "2"+"3" right ??
(even though java has capability of conversion, for the time being like Integer.parseInt("2"))
Aha. So when you said "Java takes everything as string" you were really just thinking of BufferedReader and its ability to read lines from a file into String variables. There's a long way between "Java" and "BufferedReader"; you really should try to be a little bit more precise.