Smart if(explore and justify)

class IF {

public static void main(String args[]) {

int i=10,j;

if(i!=10)

{

j=10;

}

System.out.println(j);

}

}

output: pls Reason: pls

.................................................................................................................................

class IF {

public static void main(String args[]) {

int i=10,j;

if(i==10)

{

j=10;

}

System.out.println(j);

}

}

output: pls Reason: pls

...................................................................................................................................

class IF {

public static void main(String args[]) {

int i=10,j;

if(i!=10)

{

j=10;

System.out.println(j);

}

}

}

output: pls Reason: pls

.........................................................................................................................

class IF {

public static void main(String args[]) {

int i=10,j;

if(true)

{

j=10;

}

System.out.println(j);

}

}

output:pls reason:pls

...............................................................................................................................

Justify it......................................................

[1408 byte] By [gopiMCAa] at [2007-11-27 11:56:38]
# 1

What's the question? Pretty please do my homework so that I can do something else?

kajbja at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 2

> output: pls Reason: pls

"Pls" is neither the output nor the "reason". What on earth are you talking about?

~

yawmarka at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 3

dai dappa mandaya find out the errors.............

gopiMCAa at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 4

sweet jeebus. just cut and paste them into a class and run them, then provide the OP with the answer! It's not rocket science!

;)

yorkroada at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 5

> It's not rocket science!

for some it is :)

mark07a at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 6

> dai dappa mandaya

Guabi guabi.

~

yawmarka at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 7

find the errors..........or start to learn java beginners guide i have written one book for mentally challnged students like you...............

gopiMCAa at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 8

> find the errors..........or start to learn java

> beginners guide i have written one book for mentally

> challnged students like you...............

well aren't we special we have to write books for mentally challenged kids...

mark07a at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 9

so typical. Expects others to do their homework for them, then gets abusive when it doesn't get what it wants.

jwentinga at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 10

> find the errors..........or start to learn java

> beginners guide i have written one book for mentally

> challnged students like you...............

So why are you asking the question if you already know the answers?

kajbja at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 11

> find the errors..........or start to learn java

> beginners guide i have written one book for mentally

> challnged students like you...............

What creature's dung are you smoking, you incoherent goober?

jverda at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 12

> output: pls

The output for all of them (for you only) would be something like this:

"The platform has detected an attempt to compile/run software on behalf of an inept user who has no business in the software development industry. Process aborted!"

Reason: pls

The reason is because you are inept and have no business in the software development industry.

warnerjaa at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...
# 13

You must initialize variable j...

ilkina at 2007-7-29 19:08:42 > top of Java-index,Java Essentials,Training...