Login:  Password:    
forgot my password
sign up!
Search: 
 
  This post is part of:
    Online course(s):   
 Sun Certified Java Programmer 310-065

Scanner class: Exam questions tests - Sun Certified Java Programmer 310-065 - Lesson 56 | Java courses

In this video, we also look at the methods in the TreeSet class higher() and ceiling().

"

download the application please visit www.mrbool.com/player

Title: Scanner class: Exam questions tests - Sun Certified Java Programmer 310-065 - Lesson 56

Duration:  16 minutes

Summary: In this video, we continue our discussion of the sample exam. We start with important facts about the Scanner class: default delimiter is the whitespace, hasNext() method does not cause the Scanner to advance through the data to be scanned. nextInt() method does cause the Scanner to advance through the data to be scanned. Then, we cover multi-dimensional arrays, and we see multiple options for correct and incorrect assignments. We also look at the methods in the TreeSet class higher() and ceiling(). higher() for strictly greater than, and ceiling() for greater than or equal to. Finally, we look at the wait() and notify() methods. wait() takes parameter for duration, and wait() and notify() must be called from a synchronized context.

Methodology of the development of example: Good coding standard and simplified design to prepare for the Java programmer certification exam CX-310-065.

Technology Used: Java – Core Concepts.

Keywords: class, object, Scanner, hasNext(), nextInt(), arrays, multi-dimensional arrays, exceptions, higher(), ceiling(), TreeSet, wait(), notify().





Add a comment!
[Fechar]

Este post é fechado - você precisa ter acesso ao post para incluir um comentário.


Matthew Casperson
5/7/2012 0:50am
Elaboration on question 6 It is worth noting in question 6 that by using the code in option F, you will end up with a jagged array.

b2[1][0] = [[0, 0], [0, 0]] 
This is what you would expect, given that b2 is assigned to the multidimensional array new short[2][3][2][2].

b2[1][1] = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] 
Note that the 2 dimensional array now held by b2[1][1] has the dimensions defined by b, which is new short[4][4].


Answer it
 



 
Help us to improve! Give us your feedback:
Give your note to the technical content
10 9 8 7 6 5 4 3 2 1
Give your note to the post's learning
10 9 8 7 6 5 4 3 2 1
Is this post helpful?
Yes No


Ayad Boudiab
Experience: A total of 10 years experience in developing applications using C++, Java, C#, ASP.NET, and SQL Server. In addition to 6 years experience in teaching programming courses at a local college. Degree: B.S. Computer Science Location: Atla...


Go to author's Space


Post stats:
Favorited:
 0

Post actions:
[Close]
To have full access to this post (or download the associated files) you must have MrBool Credits.

  See the prices for this post in Mr.Bool Credits System below:

Individually – in this case the price for this post is US$ 2,00 (Buy it now)
in this case you will buy only this video by paying the full price with no discount.

Package of 10 credits - in this case the price for this post is US$ 1,00
This subscription is ideal if you want to download few videos. In this plan you will receive a discount of 50% in each video. Subscribe for this package!

Package of 50 credits – in this case the price for this post is US$ 0,33
This subscription is ideal if you want to download several videos. In this plan you will receive a discount of 83% in each video. Subscribe for this package!


> More info about MrBool Credits








mrbool.com
contact us   |   publish your post   |   buy credits

Copyright 2012 - all rights reserved to www.web-03.net