All about Code and Caffeine

Pages

  • Home
  • Disclaimer
  • Privacy
  • About Us

Friday, August 29, 2014

Program Tracing #1

What is the output of this program?

class Increment
{
public static void main(String arg[])
{
int g = 3;
System.out.print(++g * 8);
}
}


a) 25
b) 24
c) 32
d) 33
Posted by Unknown at 8:49 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Java, output, static, String, void

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Grab a Cup

Grab a Cup

Blog Archive

  • ►  2016 (13)
    • ►  10/02 - 10/09 (1)
    • ►  09/25 - 10/02 (2)
    • ►  09/18 - 09/25 (4)
    • ►  09/11 - 09/18 (2)
    • ►  07/10 - 07/17 (1)
    • ►  07/03 - 07/10 (1)
    • ►  06/26 - 07/03 (1)
    • ►  05/22 - 05/29 (1)
  • ▼  2014 (26)
    • ►  12/07 - 12/14 (1)
    • ►  11/23 - 11/30 (1)
    • ►  09/28 - 10/05 (2)
    • ►  09/21 - 09/28 (1)
    • ►  09/14 - 09/21 (3)
    • ►  09/07 - 09/14 (8)
    • ►  08/31 - 09/07 (4)
    • ▼  08/24 - 08/31 (6)
      • Setting Up the ADO Data Control
      • Pre-increment Vs. Post-Increment, every programmin...
      • Program Tracing #1
      • What is a Pseudocode?
      • The do-while Loop Structure
      • The for Repetition Structure

Featured Blogs

  • Tickageek Viral
    Great White Shark in Massachusetts Salt Pond
  • Viral Stuff And Trending News
    Amazing Video On How A Man Deliver Three Baby Sharks From Dead Mother With Emergency C-Section
  • Fooviral
    The Secret Loan Tips Banks Don't Want You to Know

Total Pageviews

Check Page Rank
ADICHOSA © 2014. Simple theme. Powered by Blogger.