Another Java Question..


Okei, i made some java source code (actually i learned this from a question on one of the mock exams in javaranch) and i want to post it here.. and since YOU are reading this, how about giving it a try..?

public class Jay() {

int j = 0;

int k = 1;

Jay() {

j = k++;

if(jk)

System.out.println(“j”);

}

public static void main(String args[]) {

new Jay(); // Yehey Execute me…..

}

}

Goodluck!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s