<AptiCode/>

The ultimate platform for developers to practice, compete, and grow. Join our community of passionate coders today.

TwitterLinkedIn

Platform

ProblemsCompilerAptitude TestsContests

Company

About UsContactRewardsContribute

Legal

Terms of ServicePrivacy PolicyShipping PolicyRefund Policy

© 2025 AptiCode. All rights reserved.

Made withfor developers

topic/Operators and Assignments

Question NoTitleTypeMarks
732.What will be the output of the program?class PassA { public static void main(String [] args) { PassA p = new PassA(); p.start(); } void start() { long [] a1 = {3,4,5}; long [] a2 = fix(a1); System.out.print(a1[0] + a1[1] + a1[2] + " "); System.out.println(a2[0] + a2[1] + a2[2]); } long [] fix(long [] a3) { a3[1] = 7; return a3; } }
MCQ
5
733.What will be the output of the program?class Test { public static void main(String [] args) { Test p = new Test(); p.start(); } void start() { boolean b1 = false; boolean b2 = fix(b1); System.out.println(b1 + " " + b2); } boolean fix(boolean b1) { b1 = true; return b1; } }
MCQ
5
734.What will be the output of the program?class PassS { public static void main(String [] args) { PassS p = new PassS(); p.start(); } void start() { String s1 = "slip"; String s2 = fix(s1); System.out.println(s1 + " " + s2); } String fix(String s1) { s1 = s1 + "stream"; System.out.print(s1 + " "); return "stream"; } }
MCQ
5
735.What will be the output of the program?class BitShift { public static void main(String [] args) { int x = 0x80000000; System.out.print(x + " and "); x = x >>> 31; System.out.println(x); } }
MCQ
5
736.What will be the output of the program?class Equals { public static void main(String [] args) { int x = 100; double y = 100.1; boolean b = (x = y); /* Line 7 */ System.out.println(b); } }
MCQ
5