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
Your email address will not be published. Required fields are marked *
Report
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
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