Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Marcus Green Mock #3

 
Maria Garcia
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following statements are true?
1) The elements in a Java array can only be of primitive types, not objects
2) Arrays elements are initialized to default values wherever they are created using the keword new
3) An array may be dynamically resized using the setSize method
4) You can find out the size of an array using the size method
Answer is 2. But this is not the case whe the array is created within a method, right?
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try creating an array in a method and seeing if the elements are initialized.
[ January 20, 2003: Message edited by: Marcus Green ]
 
Maria Garcia
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marcus. Great Mock Exam!
 
Khurram Chaudhary
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marcus,
Can I consider the difficulty level of your exams equivalent to SCJP1.4.
I have been preparing for the exam for last 2 - 3 months on and off. But I cannot decide if I am ready for the exam. I got around 80% in your two mock exams and have not tried the third one yet(saving it for the last week). Can anbody suggest me how can I make sure that I will pass the exam.
Thanks
KC
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can anbody suggest me how can I make sure that I will pass the exam.

Suggestion: Try answering questions on this forum.
By the way welcome to the Ranch.
[ January 20, 2003: Message edited by: Jose Botella ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic