Menu
Question Index
...

What will be the output of the following program?

public class LongMethods {
    public static void main(String[] args) {
        Long input = 10;
        System.out.println(Long.rotateLeft(input, 2));
        System.out.println(Long.signum(-20));
    }
}


40
-20
40
-1
10
-20
Compilation Error
Runtime Error

Doubts

Problems

Topic: Converting Numbers to and from Strings In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App