i)
public boolen abc(int num){ return num % 2 == 1;}
ii)
Take Java Programming Practice Tests - Chapterwise!Start the Test Now: Chapter 1,
2,
3,
4,
5,
6,
7,
8,
9,
10
advertisement
var adpushup = window.adpushup || {};
adpushup.que = adpushup.que || [];
adpushup.que.push(function () {
if (adpushup.config.platform === "MOBILE") {
adpushup.triggerAd("fdd9bf87-4faf-4493-82b4-e5538b31931a");
} else if ((window.outerWidth <= 768) || (window.outerWidth == 0)) {
adpushup.triggerAd("fdd9bf87-4faf-4493-82b4-e5538b31931a");
}
});
public boolean xyz(int num){ return (num & 1)!= 0; }
a) i
b) ii
c) (i) causes compilation error
d) (ii) causes compilation error
Which of the following is good coding practice to determine oddity?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following is good coding practice to determine oddity?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!