File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes explin the logic plz... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "explin the logic plz..." Watch "explin the logic plz..." New topic
Author

explin the logic plz...

Priya dharshini
Ranch Hand

Joined: Aug 06, 2005
Posts: 78
public class Test{
public sttic void main(String []args){
byte[][] big= new byte[7][7];
byte[][] b=ne byte[2][1];
byte b3=5;
byte b2 [][][][][=new bye[2][3][1][2];
}
}

Which of the following lines of code could be inserted at line 7,nd still allow the code to compile?(choose 4)

A.b2[0][1]=b;
B.b[0][0]=b3;
C.b2[1][1][0]=b[0][0];
D.b2[1][2][0]=b;
E.b2[0][1][0][0]=b[0][0];
F.b2[0][1]=big;

Ans:A,B,E,F


Thanks & Regards,
Priyadharshini . T
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
1. Please place your code between tags to preserve formatting. There is a special button marked "CODE" that you can use.

2. Please edit your code because it is obviously full of typing errors. You can use the icon that looks like a pencil and paper for that purpose.

Thanks
-Barry


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Priya dharshini
Ranch Hand

Joined: Aug 06, 2005
Posts: 78
Sorry..Hereafter i will post inside .I am new member so that i don't know the method.Thank u.
Sherry Jacob
Ranch Hand

Joined: Jun 29, 2005
Posts: 128
Originally posted by Barry Gaunt:
1. Please place your code between tags to preserve formatting. There is a special button marked "CODE" that you can use.

2. Please edit your code because it is obviously full of typing errors. You can use the icon that looks like a pencil and paper for that purpose.

Thanks
-Barry


Ya Barry's right...follow his comments...he taught me to be professional in posting messages on the site.


<strong><br />Cheers !!<br /> <br />Sherry<br /></strong><br />[SCJP 1.4]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: explin the logic plz...