gongpex Posted October 14, 2013 Share Posted October 14, 2013 Hello everyone, long time no see, I hope all of you are alright, I want to ask, what's the difference between : public void objectTest() {} with : public String objectTest() {} please someone answer me Thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted October 14, 2013 Share Posted October 14, 2013 One of them doesn't return a value, and one of them returns a string. Link to comment Share on other sites More sharing options...
mk12345 Posted November 9, 2013 Share Posted November 9, 2013 public void objecttest doesn't return any type but public string objecttest return the string type. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now