Objective
Objective
!Iii
0 The code will result in a compilation-errot~a:?'1~e:met hod add cannot be accessed outside the-class.
- - - ~ r:1~ · - - - -4.. -
c:~pili:n
jj,,_. - - - ___- ....,;,;;.;,.I
Q The code will result in a c ompilat ion error as·a non-static method cannot be invoked from a static m ethod.
e '
Fil ,1Q IR11:S T 1 [/Ii ' 1I ,,
Self Assessment - Programming using Java > 5: Self Assessment - Programming using Java-12
IQ
I
Compilation error - cannot convert from float to int
. ,:,11
jJ:,/1 fil II I 11 .
,i
retuf1l couoteG
}
J-
Q 1001100210021oaa1m1eio04
Q 1 ,.. J'
0 2
03
() 4
Q. syst:em.dut.prl11tl11(this.address.get21p0ode());
11
n Svstern.o~tcrintln(CLIStomer.address.zioCode}:
<c
I I 11,111!111 l!II'
Iii I
I I
/1111 lid
, I I I Ill
if ( i >= j / 2) {
continue:;
1
} el se {
sum +=- .il +· j ~
'"
}
} m
} ..
Sum = B
1:1 Q Sum = 18
Iii)) 111
'ii I
I)) 11
0 Sum=
·7~1i-
~
36
11
• k' N ' p 1
,,,,. II ,,,u""' • 11111111
0 Cl 1c ing on ext or rev 1ous w1 su"ullll11t your answ~r
' I I 1111, , I 11 ,
'I . I
Self Assessma . ., . 1: Seit As~Htssment - Programming using
1
- --'.'..-IOilliloll,,,,-~ _~----------i
1
,
cJoi {,' I, .!-.,,, 1
•Ii
,1
IO
·,. '· nurn l = 5 qn d n,um2 = -1
+ I
'II,
i I,
11·
I 11 . .
H ),1fl4 = -1
.
111
I rl'
class student {
public int studentid;
public string name;
}
1
aria1:Jl,es : 3, .objects: 3
1
- _ ,,r,11,-I
"'~
11 '1'1[ 1111
. ,1
Clicking cm Ne:,ct or Previous will .,ubmit. your. ariswer.
·, thy Pran<-4'.'tha
Self As•essmcn1 - Programming using Java > 13: Self Aa1e1ament - Programming uaing Java-23
tr!fflll1fl1n~er(Strfoc nlllllc) {
) .
)
)
maw(Str1ng[] angs) {
stcfflE "lneer = c:: S} stc:t1E~nc::er( •t-iaria•) ;
.our.pr!ntln(s)stcmEnginccr.gct~());
I c:1 a
Of ,a
.!._ Killarnsethy Pr~=rn eetha
Se Aase I
- Programmi •
. elf Assessment -
111 11 i
mming using J
} else {
system. out. println( "Welcome'');
}
}
}
-
l O..
----- r~~i'!--
Welcome . .
- """I
Welcome warner
I'
~r- 'ldat'atyp.e rn i~l(natch, ca1.1not (iQllljlare String literal with String object
If· 1111111111m1ii1 ·1 jlll1rli
:Ii
1
I I 11IHli I.I II
I Ill I
Iii I l i Wi I
Self Assaa.smeot - '
":this •ge~der == .~ ,
} s,, "·
ss f::.mployee h
I
11
111
; 11[1 '
Q Alex, ,Robert
~
O Clicking on Next or Previous will submit your answer.
.!. K1 llamsethy Prnneetha
Self Asses,ment - Program~ing using -1ava > 16: Se1f Assessment - Programming using Java-22
plll!f!.1.c ~l,s$ i1
I' I
Self Asseasment - Programming using Jata > 1B: Self Assessment - Programming using Java-3
lo Compilation error - u · e m - . e
-- - -~ ---
0 28
0 Z6
0 25
Iii I
:1·
• 1· · 'IL. I 1 1
1
li[our answer.
•u l
00 hr 19
!. i(i\lamsethy Praneetha
I 11 1
String ~f!elj; = "[A-Z)[ a-z0-9 ' %& u. , '
111
111
i i 1*";•
I
1
'A-2'.a z •
11 I
I I
'Ill 11111
1,1
I,
- -
( -.....,, '150.0
\.,_,I
p~q'l ic
,: 1
1
double mu!tip~~€4.n-
' double sum = th is . add ( nl!iitl,,
;;JL . . .. --
double product = this .suff! '!'-:ftfts .,numl;;
retr..trn (int) pr oduct; -
}
}
I
150.0
0 300.0
() 0
:a () 0.0
,II
,w I
case 1 :
employeesSalary[count] = sa
llr~ak;
}
}
or (int i = 0 ; i < empl
s em. out._print(emplaye
'.~l-1jH:-•1i'I'!'.
- !jl' •ii
1 .. II II
6755 1201 1364 1S63
ii
I
I
~, I
for (,i~~ l~~JI~ 1
switch f(J~];;1rt
1
' iffii 1/1 1/lllilii .
'1
I
f
1· I 11
defa11111i Ii l l!IL 1
:
1
em,~oyee,~aUL · ~c
~aie 0 ~ ,
e~, 1oy~e1 l~J~ ry ~t~
1 1 Ill
1lf~f,f+t.
ca~e' :IJ :
I l•
1
11
1
1
1 '~rqrllQYee,s
;:
""ilm
Seilan;-[l:011
'l /[1
h1;J :::;
I "'1
S
1111 1I
I
brea~; . 1
I
I } 11 Iii 1 1 Ir 1· 1111
I I
i'lli ';I } . 1
1111 ifl';: 11 1
Ii ,t 11 U•
. 2344,.6755 1 -
6755 12011364
,.
1/ _'.j1