Quantcast
Channel: Alvin "Jay" Reyes Blog » another java question
Viewing all articles
Browse latest Browse all 2

Another Java Question..

$
0
0

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!



Viewing all articles
Browse latest Browse all 2

Trending Articles