You are on page 1of 17

Oracle1Z0851ExamQuestions

A lot of candidates like you wander through gazillions of websites, books and guides searching for
quality preparation materials for Java SE 6 Programmer 1Z0851 Oracle Solaris 11 System
AdministrationExamandstillstruggletofindtherightkindofresources.It'shightimeforyoutostop
wasting your time and energy on searching the right materials and start doing the actual practice.
With DumpsSchool, you will have access to appropriate and best Oracle Software Development
Management 1Z0851 Exam Training Materials so that you can directly start your real practice for
Oracle 1Z0851 exam. DumpsSchool is the frontrunner in providing authentic and up to date
preparation materials for Oracle 1Z0851 exam. At DumpsSchool, we have built a pool of required
preparation materials with all the necessary information covering the 1Z0851 Exam Topics
extensively. We also provide you the necessary training resources for Oracle 1Z0851 Oracle Solaris
11 System Administration which includes general overview of the exam and its prerequisites, FAQs
abouttheexam,thetopicstofocuson,differentkindsofprospectivequestionsandhowtoprepare
forthem.

Oracle1Z0851ExamPreparationMaterialbyDumpsSchool
Afterpracticingwithourpreparationresourcesyouwillbeabletodisplayyourknowledge,skillsand
critical acumen regarding administration for Apache Hadoop clusters. Besides, you will have a much
elaboratesenseof:

Examtimescenarioof1Z0851exam
AppropriatepacingfortheOracle1Z0851exam
AreastofocusonfortheOracleSolaris11SystemAdministrationexam
Prospectivequestiontypesforthe1Z0851exam
TesttakingStrategiestofollow

We take pride in our dedication and delivery of an excellent product which has served tens of
thousandsofcustomerstosuccessfullypasstheircertificationexamsandyoucanalsojointhemnow.
Questios & Aoswers PDF Page 1

Oracle
1Z0-851 Exam
Java Standard Edition 6 Programmer Certified Professional

Thaok yiu fir Diwooia.iog 1Z0-851 exau PDF Deui

Yiu sao aosi try iur 1Z0-851 trastse exau sifware

Download Free Demo:


https://www.dumpsschool.com/1Z0-851-exam-dumps.html

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 2

Queston: 1

Giveo a tre-geoeriss iutoeueotatio if a uethi.s


11w tubois stats iot suu(List oist) {
12w iot suu = 0;
13w fir ( Iteratir iter = oistwiteratir(); iterwhasNext(); ) {
14w iot i = ((Ioteger)iterwoext())wiotVaoue();
15w suu += i;
16w }
17w returo suu;
18w }
What three shaoges aooiw the soass ti be use. with geoeriss ao. avii. ao uosheske. waroiog?
(Chiise threew)

Aw Reuive oioe 14w


Bw Retoase oioe 14 with "iot i = iterwoext();"w
Cw Retoase oioe 13 with "fir (iot i s iotList) {"w
Dw Retoase oioe 13 with "fir (Iteratir iter s iotList) {"w
Ew Retoase the uethi. .esoaratio with "suu(List<iot> iotList)"w
Fw Retoase the uethi. .esoaratio with "suu(List<Ioteger> iotList)"w

Answer: A,C,F

Queston: 2

A trigrauuer has ao aogirithu that requires a javawutowList that trivi.es ao efsieot


iutoeueotatio if a..(0, ibjest), but .ies NOT oee. ti suttirt quisk rao.iu assessw What
suttirts these requireueots?

Aw javawutowQueue
Bw javawutowArrayList
Cw javawutowLioearList
Dw javawutowLioke.List

Answer: D

Queston: 3

Giveos
11w :: iosert si.e here
12w trivate N uio, uax;
13w tubois N getMio() { returo uio; }
14w tubois N getMax() { returo uax; }

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 3

15w tubois vii. a..(N a..e.) {


16w if (uio == ouoo || a..e.w.iuboeVaoue() < uiow.iuboeVaoue())
17w uio = a..e.;
18w if (uax == ouoo || a..e.w.iuboeVaoue() > uaxw.iuboeVaoue())
19w uax = a..e.;
20w }
21w }
Whish twi, ioserte. at oioe 11, wioo aooiw the si.e ti siutioe? (Chiise twiw)

Aw tubois soass MioMax<?> {


Bw tubois soass MioMax<? exteo.s Nuuber> {
Cw tubois soass MioMax<N exteo.s Objest> {
Dw tubois soass MioMax<N exteo.s Nuuber> {
Ew tubois soass MioMax<? exteo.s Objest> {
Fw tubois soass MioMax<N exteo.s Ioteger> {

Answer: D,F

Queston: 4

Giveos
12w iutirt javawutow.;
13w tubois soass Extoirer2 {
14w tubois stats vii. uaio(Striog[] args) {
15w TreeSet<Ioteger> s = oew TreeSet<Ioteger>();
16w TreeSet<Ioteger> subs = oew TreeSet<Ioteger>();
17w fir(iot i = 606; i < 613; i++)
18w if(i%2 == 0) swa..(i);
19w subs = (TreeSet)swsubSet(608, true, 611, true);
20w swa..(629);
21w Systeuwiutwtriotoo(s + " " + subs);
22w }
23w }
What is the resuot?

Aw Ciutioatio faiosw
Bw Ao exsettio is thriwo at ruotuew
Cw [608, 610, 612, 629] [608, 610]
Dw [608, 610, 612, 629] [608, 610, 629]
Ew [606, 608, 610, 612, 629] [608, 610]
Fw [606, 608, 610, 612, 629] [608, 610, 629]

Answer: E

Queston: 5

Giveos

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 4

1w tubois soass Ssire iutoeueots Ciutaraboe<Ssire> {


2w trivate iot wios, oisses;
3w tubois Ssire(iot w, iot o) { wios = w; oisses = o; }
4w tubois iot getWios() { returo wios; }
5w tubois iot getLisses() { returo oisses; }
6w tubois Striog tiStriog() {
7w returo "<" + wios + "," + oisses + ">";
8w }
9w :: iosert si.e here
10w }
Whish uethi. wioo siutoete this soass?

Aw tubois iot siutareTi(Objest i){:.uire si.e here.:}


Bw tubois iot siutareTi(Ssire ither){:.uire si.e here.:}
Cw tubois iot siutare(Ssire s1,Ssire s2){:.uire si.e here.:}
Dw tubois iot siutare(Objest i1,Objest i2){:.uire si.e here.:}

Answer: B

Queston: 6

Giveos
11w tubois soass Persio {
12w trivate oaue;
13w tubois Persio(Striog oaue) {
14w thiswoaue = oaue;
15w }
16w tubois iot hashCi.e() {
17w returo 420;
18w }
19w }
Whish stateueot is true?

Aw The tue ti fo. the vaoue friu HashMat with a Persio key .eteo.s io the size if the uatw
Bw Deoetog a Persio key friu a HashMat wioo .eoete aoo uat eotries fir aoo keys if tyte Persiow
Cw Iosertog a sesio. Persio ibjest ioti a HashSet wioo sause the frst Persio ibjest ti be reuive. as
a .utoisatew
Dw The tue ti .eteruioe whether a Persio ibjest is siotaioe. io a HashSet is siostaot ao. .ies
NOT .eteo. io the size if the uatw

Answer: A

Queston: 7

Giveos
5w iutirt jav
awutow.;

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 5

6w tubois soass SirtOf {


7w tubois stats vii. uaio(Striog[] args) {
8w ArrayList<Ioteger> a = oew ArrayList<Ioteger>();
9w awa..(1); awa..(5); awa..(3);
11w Ciooestioswsirt(a);
12w awa..(2);
13w Ciooestioswreverse(a);
14w Systeuwiutwtriotoo(a);
15w }
16w }
What is the resuot?
Aw [1, 2, 3, 5]
Bw [2, 1, 3, 5]
Cw [2, 5, 3, 1]
Dw [5, 3, 2, 1]
Ew [1, 3, 5, 2]
Fw Ciutioatio faiosw
Gw Ao exsettio is thriwo at ruotuew

Answer: C

Queston: 8

Giveo
11w tubois ioterfase Status {
12w :. iosert si.e here .: iot MY_VALUE = 10;
13w } Whish three are vaoi. io oioe
12?
(Chiise threew)

Aw foao
Bw stats
Cw oatve
Dw tubois
Ew trivate
Fw abstrast
Gw triteste.

Answer: A,B,D

Queston: 9

Giveos
5w soass Atiu {
6w Atiu() { Systeuwiutwtriot("atiu "); }
7w }
8w soass Risk exteo.s Atiu {

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 6

9w Risk(Striog tyte) { Systeuwiutwtriot(tyte); }


10w }
11w tubois soass Miuotaio exteo.s Risk {
12w Miuotaio() {
13w suter("graoite ");
14w oew Risk("graoite ");
15w }
16w tubois stats vii. uaio(Striog[] a) { oew Miuotaio(); }
17w }
What is the resuot?

Aw Ciutioatio faiosw
Bw atiu graoite
Cw graoite graoite
Dw atiu graoite graoite
Ew Ao exsettio is thriwo at ruotuew
Fw atiu graoite atiu graoite

Answer: F

Queston: 10

Coisk the Exhibit butiow

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 7

Whish three stateueots are true? (Chiise threew)

Aw Ciutioatio faiosw
Bw The si.e siutioes ao. the iuttut is 2w
Cw If oioes 16, 17 ao. 18 were reuive., siutioatio wiuo. faiow
Dw If oioes 24, 25 ao. 26 were reuive., siutioatio wiuo. faiow
Ew If oioes 16, 17 ao. 18 were reuive., the si.e wiuo. siutioe ao. the iuttut wiuo. be 2w
Fw If oioes 24, 25 ao. 26 were reuive., the si.e wiuo. siutioe ao. the iuttut wiuo. be 1w

Answer: B,E,F

Queston: 11

Giveos
10w soass Lioe {
11w tubois soass Piiot { tubois iot x,y;}
12w tubois Piiot getPiiot() { returo oew Piiot(); }
13w }
14w soass Triaogoe {
15w tubois Triaogoe() {
16w :: iosert si.e here

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 8

17w }
18w }
Whish si.e, ioserte. at oioe 16, sirrestoy retrieves a oisao iostaose if a Piiot ibjest?

Aw Piiot t = LioewgetPiiot();
Bw LioewPiiot t = LioewgetPiiot();
Cw Piiot t = (oew Lioe())wgetPiiot();
Dw LioewPiiot t = (oew Lioe())wgetPiiot();

Answer: D

Queston: 12

Giveos
11w soass Aotha {
12w tubois vii. fii() { Systeuwiutwtriot("Afii "); }
13w }
14w tubois soass Beta exteo.s Aotha {
15w tubois vii. fii() { Systeuwiutwtriot("Bfii "); }
16w tubois stats vii. uaio(Striog[] args) {
17w Aotha a = oew Beta();
18w Beta b = (Beta)a;
19w awfii();
20w bwfii();
21w }
22w }
What is the resuot?

Aw Afii Afii
Bw Afii Bfii
Cw Bfii Afii
Dw Bfii Bfii
Ew Ciutioatio faiosw
Fw Ao exsettio is thriwo at ruotuew

Answer: D

Queston: 13

Coisk the Exhibit butiow

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 9

Whish stateueot is true abiut the soasses ao. ioterfases io the exhibit?

Aw Ciutioatio wioo sussee. fir aoo soasses ao. ioterfasesw


Bw Ciutioatio if soass C wioo faio besause if ao errir io oioe 2w
Cw Ciutioatio if soass C wioo faio besause if ao errir io oioe 6w
Dw Ciutioatio if soass AIuto wioo faio besause if ao errir io oioe 2w

Answer: C

Queston: 14

Whish twi si.e fragueots sirrestoy sreate ao. ioitaoize a stats array if iot eoeueots? (Chiise twiw)

Aw stats foao iot[] a = { 100,200 };


Bw stats foao iot[] a;
stats { a=oew iot[2]; a[0]=100; a[1]=200; }
Cw stats foao iot[] a = oew iot[2]{ 100,200 };
Dw stats foao iot[] a;
stats vii. ioit() { a = oew iot[3]; a[0]=100; a[1]=200; }

Answer: A,B

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 10

Queston: 15

Giveos
10w ioterfase Fii { iot bar(); }
11w tubois soass Strite {
12w tubois iot fubar( Fii fii ) { returo fiiwbar(); }
13w tubois vii. testFii() {
14w fubar(
15w :: iosert si.e here
16w );
17w }
18w }
Whish si.e, ioserte. at oioe 15, aooiws the soass Strite ti siutioe?

Aw Fii { tubois iot bar() { returo 1; }


Bw oew Fii { tubois iot bar() { returo 1; }
Cw oew Fii() { tubois iot bar() { returo 1; }
Dw oew soass Fii { tubois iot bar() { returo 1; }

Answer: C

Queston: 16

Giveos
1w soass Aooigatir {
2w tubois stats vii. uaio(Striog[] args) {
3w iot []x[] = {{1,2}, {3,4,5}, {6,7,8,9}};
4w iot [][]y = x;
5w Systeuwiutwtriotoo(y[2][1]);
6w }
7w }
What is the resuot?

Aw 2
Bw 3
Cw 4
Dw 6
Ew 7
Fw Ciutioatio faiosw

Answer: E

Queston: 17

Giveos
22w StriogBuio.er sb1 = oew StriogBuio.er("123");

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 11

23w Striog s1 = "123";


24w :: iosert si.e here
25w Systeuwiutwtriotoo(sb1 + " " + s1);
Whish si.e fragueot, ioserte. at oioe 24, iuttuts "123abs 123abs"?

Aw sb1watteo.("abs"); s1watteo.("abs");
Bw sb1watteo.("abs"); s1wsiosat("abs");
Cw sb1wsiosat("abs"); s1watteo.("abs");
Dw sb1wsiosat("abs"); s1wsiosat("abs");
Ew sb1watteo.("abs"); s1 = s1wsiosat("abs");
Fw sb1wsiosat("abs"); s1 = s1wsiosat("abs");
Gw sb1watteo.("abs"); s1 = s1 + s1wsiosat("abs");
Hw sb1wsiosat("abs"); s1 = s1 + s1wsiosat("abs");

Answer: E

Queston: 18

Giveo that the surreot .irestiry is eutty, ao. that the user has rea. ao. write teruissiios, ao. the
fiooiwiogs
11w iutirt javawiiw.;
12w tubois soass DOS {
13w tubois stats vii. uaio(Striog[] args) {
14w Fioe .ir = oew Fioe(".ir");
15w .irwuk.ir();
16w Fioe f1 = oew Fioe(.ir, "f1wtxt");
17w try {
18w f1wsreateNewFioe();
19w } satsh (IOExsettio e) { ; }
20w Fioe oewDir = oew Fioe("oewDir");
21w .irwreoaueTi(oewDir);
22w }
23w }
Whish stateueot is true?

Aw Ciutioatio faiosw
Bw The foe systeu has a oew eutty .irestiry oaue. .irw
Cw The foe systeu has a oew eutty .irestiry oaue. oewDirw
Dw The foe systeu has a .irestiry oaue. .ir, siotaioiog a foe f1wtxtw
Ew The foe systeu has a .irestiry oaue. oewDir, siotaioiog a foe f1wtxtw

Answer: E

Queston: 19

Giveos
11w soass Cioverter {

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 12

12w tubois stats vii. uaio(Striog[] args) {


13w Ioteger i = args[0];
14w iot j = 12;
15w Systeuwiutwtriotoo("It is " + (j==i) + " that j==iw");
16w }
17w }
What is the resuot wheo the trigrauuer ateutts ti siutioe the si.e ao. ruo it with the siuuao.
java Cioverter 12?

Aw It is true that j==iw


Bw It is faose that j==iw
Cw Ao exsettio is thriwo at ruotuew
Dw Ciutioatio faios besause if ao errir io oioe 13w

Answer: D

Queston: 20

Giveos
11w Striog test = "Test Aw Test Bw Test Cw";
12w :: iosert si.e here
13w Striog[] resuot = testwstoit(regex);
Whish reguoar extressiio, ioserte. at oioe 12, sirrestoy stoits test ioti "Test A", "Test B", ao. "Test C"?

Aw Striog regex = "";


Bw Striog regex = " ";
Cw Striog regex = "w.";
Dw Striog regex = "\\s";
Ew Striog regex = "\\w\\s.";
Fw Striog regex = "\\w[ \w] +";

Answer: E

Queston: 21

Giveos
5w iutirt javawutowDate;
6w iutirt javawtextwDateFiruat;
21w DateFiruat .f;
22w Date .ate = oew Date();
23w :: iosert si.e here
24w Striog s = .fwfiruat(.ate);
Whish si.e fragueot, ioserte. at oioe 23, aooiws the si.e ti siutioe?

Aw .f = oew DateFiruat();
Bw .f = DatewgetFiruat();
Cw .f = .atewgetFiruat();

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 13

Dw .f = DateFiruatwgetFiruat();
Ew .f = DateFiruatwgetIostaose();

Answer: E

Queston: 22

Giveo a soass Retettios


1w taskage utos;
2w
3w tubois soass Retettio {
4w tubois stats Striog twise(Striog s) { returo s + s; }
5w } ao. giveo aoither soass Deuis 1w :: iosert si.e here
2w
3w tubois soass Deui {
4w tubois stats vii. uaio(Striog[] args) {
5w Systeuwiutwtriotoo(twise("tizza"));
6w }
7w }
Whish si.e shiuo. be ioserte. at oioe 1 if Deuiwjava ti siutioe ao. ruo Deui ti triot "tizzatizza"?

Aw iutirt utosw.;
Bw stats iutirt utosw.;
Cw iutirt utoswRetettiow.;
Dw stats iutirt utoswRetettiow.;
Ew iutirt utoswRetettiowtwise();
Fw iutirt stats utoswRetettiowtwise;
Gw stats iutirt utoswRetettiowtwise;

Answer: F

Queston: 23

A UNIX user oaue. Bib waots ti retoase his shess trigrau with a oew ioe, but he is oit sure where
the io. ioe is iostaooe.w Bib is surreotoy aboe ti ruo a Java shess trigrau startog friu his hiue
.irestiry :hiue:bib usiog the siuuao.s java -soasstath :tests:hiue:bib:.iwooia.s:.wjar
gaueswChess Bib's CLASSPATH is set (at oigio tue) tis
:usr:oibs:hiue:bib:soassess:itt:java:oibs:itt:java:oib:.wjar What is a tissiboe oisatio fir the
Chesswsoass foe?

Aw :test:Chesswsoass
Bw :hiue:bib:Chesswsoass
Cw :test:gaues:Chesswsoass
Dw :usr:oib:gaues:Chesswsoass
Ew :hiue:bib:gaues:Chesswsoass
Fw iosi.e jarfoe :itt:java:oib:Gaueswjar (with a sirrest uaoifest)
Gw iosi.e jarfoe :hiue:bib:.iwooia.s:Gaueswjar (with a sirrest uaoifest)

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 14

Answer: C

Queston: 24

Giveos
3w ioterfase Aoiuao { vii. uakeNiise(); }
4w soass Hirse iutoeueots Aoiuao {
5w Liog weight = 1200L;
6w tubois vii. uakeNiise() { Systeuwiutwtriotoo("whiooy"); }
7w }
8w tubois soass Iseoao.is exteo.s Hirse {
9w tubois vii. uakeNiise() { Systeuwiutwtriotoo("viooy"); }
10w tubois stats vii. uaio(Striog[] args) {
11w Iseoao.is i1 = oew Iseoao.is();
12w Iseoao.is i2 = oew Iseoao.is();
13w Iseoao.is i3 = oew Iseoao.is();
14w i3 = i1; i1 = i2; i2 = ouoo; i3 = i1;
15w }
16w }
Wheo oioe 15 is reashe., hiw uaoy ibjests are eoigiboe fir the garbage siooestir?

Aw 0
Bw 1
Cw 2
Dw 3
Ew 4
Fw 6

Answer: E

Queston: 25

Coisk the Exhibit butiow

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 15

Giveo the fuooy-quaoife. soass oauess siuwfiiwbarwDig


siuwfiiwbarwboatzwBiik siuwbarwCar siuwbarwboatzwSuo Whish grath retreseots the sirrest .irestiry
strusture fir a JAR foe friu whish thise soasses sao be use. by the siutioer ao. JVM?

Aw Jar A
Bw Jar B
Cw Jar C
Dw Jar D
Ew Jar E

Answer: A

httss::wwww.uutssshiiowsiu
Questios & Aoswers PDF Page 16

Thank You for trying 1Z0-851 PDF Demo

Ti try iur 1Z0-851 trastse exau sifware visit oiok beoiw

https://www.dumpsschool.com/1Z0-851-exam-dumps.html

Start Your 1Z0-851 Preparation


Use Coupon 20OFF for extra 20% discount on the purchase of
Practice Test Software. Test your 1Z0-851 preparation with actual
exam questions.

httss::wwww.uutssshiiowsiu

You might also like