Syvum Home Page

Home > Quiz Games > Java Programming >

Java Programming : Flash Cards II


Learn Java programming through these flash cards.

Formats Worksheet / Test Paper Quiz Review
Flash Cards



What output will the following program produce?
class Bits
{
public static void main(String args[ ])
{
short s1 = 3; // 0000 0011
short s2 = 13; // 0000 1101
s1 = (short) (s1 ^ s2);
System.out.println("Result is " + s1);
}
}
 



Print Flashcards
Create Your Own Flash Cards


Contact Info © 1999-2025 Syvum Technologies Inc. Privacy Policy Disclaimer and Copyright