You are not logged in.

#1 2015-06-10 09:42:58

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

Public Class Test:

Question:
public class Test
{

public static void main(String [] args)
{
int i = 0xFFFFFFF1;
int j = ~i;
System.out.println(j);
}

}

What would be output?

Option A):
14
Option B):
11
Option C):
12
Option D):
15

Correct Answer is Option A):
14


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-06-10 09:42:58

Advertisement
Ads By Google

Re: Public Class Test:



\n

Board footer