+ 6

I don't know why code is coming in my mind. Can anyone tell what does it do?

import java.io.*; class disturbance{ while(10>8){ /* *@param args */ } public static void main (String args[]){ } }

6th Mar 2017, 4:33 PM
Prabhakar Dev
Prabhakar Dev - avatar
2 odpowiedzi
+ 10
It does nothing. Does not even compile, because you defined the while loop at the wrong place. It has to be defined inside constructor or - the better choice here - in a method. Then call that method inside main. And then you will have nothing but an infinite loop.
6th Mar 2017, 5:15 PM
Tashi N
Tashi N - avatar
+ 1
you have lot of errors in your programs when you compile it try to figure it out what errors u made.
21st May 2017, 4:42 AM
Aditya Narayan Mishra
Aditya  Narayan Mishra - avatar