是可以传入的。

package com.sun.test;

public class Test03 {

    /**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Test03 t3 = new Test03();
String s = "hello";
String re = t3.Str(s);
System.out.println(re);
int i = 10;
String re1 = t3.Nnm(i);
System.out.println(re1); } public String Str(Object c){
//System.out.println(c);
return c.toString();
}
public String Nnm(Object c){
//System.out.println(c);
return c.toString();
} }