Programology – Telegram
Programology
7.29K subscribers
1.94K photos
771 videos
6 files
2.08K links
Pro·​gram | \ ˈPrō-ˌgram , -grəm \
:A Sequence Of Coded Instructions That Can Be Inserted Into A Mechanism (Such As A Computer)

Who We Are : https://msha.ke/programmerjokesofficial
Download Telegram
Comment Output
Options
Anonymous Quiz
36%
A
26%
B
24%
C
14%
D
👍1
Comment Output
Options
Anonymous Quiz
32%
A
18%
B
10%
C
40%
D
👍1
Output:

k
Explanation:
The index position -1 represents either the last element in a list or the last character in a String. In the above given list of names “nameList”, the index 1 represents the second element i.e, the second string “Pratik” and the index -1 represents the last character in the string “Pratik”. So, the output is “k”.
👍3😁2
Comment Output
Options
Anonymous Quiz
41%
A
16%
B
33%
C
10%
D
Answer: c
Explanation: i.byteValue() method returns the value of wrapper i as a byte value. i is 257, range of byte is 256 therefore i value exceeds byte range by 1 hence 1 is returned and stored in x.
Output:
$ javac Output.java
$ java Output
1
Comment Output