Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  FAQFAQ  SearchSearch  RegisterRegister  MemberlistMemberlist  UsergroupsUsergroups  Log in  India NewsIndia News  
Keywords
question prelim CLASS RESULT YEAR papers 2010
Latest topics
Top posters
abhas
 
Anu..i luv icse...:)
 
G-7
 
siya
 
Candy
 
jOhNy
 
Apurva
 
WinRrule
 
ambili
 
saif
 



Search if you can't find it here

Find output of following java program

View previous topic View next topic Go down
AuthorMessage
saif
Active member
Active member



PostSubject: Find output of following java program Sat Nov 28, 2009 10:14 pm

class out
{
void main()
{
int a=1;
switch(a)
{
case '1':
{ System.out.print("ONE\n");
break;}
case '2':
{System.out.print("TWO\n");
break;}
default : System.out.print("NONE\n");
}

}


}
Back to top Go down
View user profile
saif
Active member
Active member



PostSubject: Re: Find output of following java program Sat Nov 28, 2009 10:14 pm

Answer

None
Back to top Go down
View user profile
disha




PostSubject: Re: Find output of following java program Mon Feb 22, 2010 12:04 am

I think it should be

One
Back to top Go down
View user profile
saif
Active member
Active member



PostSubject: Re: Find output of following java program Mon Feb 22, 2010 10:44 am

NO IT WON'T BE ONE LOOK AT THE PROGRAM CAREFULLY AND YOU WILL KNOW WHY....(try runing it on your computer)

hint:
integer and character data types are being compared


This ques. was created by me Smile
Back to top Go down
View user profile
sayan822

avatar


PostSubject: Re: Find output of following java program Mon Feb 22, 2010 10:57 pm

its NONE!!!!!!!!
Back to top Go down
View user profile
disha




PostSubject: Re: Find output of following java program Mon Feb 22, 2010 11:23 pm

kk... its none... thanks... Laughing
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Find output of following java program

Back to top Go down

Find output of following java program

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: ISC :: ISC 2010 [Class xii] :: Computer-