info@avatto.com
+91-9920808017
0. What is the output of the following JAVA program ? Class Test { public static void main(String[] args) { Test obj = new Test(); obj.start(); } void start() { String stra = ”do”; String strb = method(stra); System.out.print(“: ”+stra + strb); } String method(String stra) { stra = stra + ”good”; System.out.print(stra); return“ good”; } }
dogood : dogoodgood
dogood : gooddogood
dogood : dodogood
dogood : dogood
You must be logged in to post a comment.
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login
You must be logged in to post a comment.