MCA-II Java Programming QB

download MCA-II Java Programming QB

of 6

Transcript of MCA-II Java Programming QB

  • 8/17/2019 MCA-II Java Programming QB

    1/6

    MCA-II Java ProgrammingQUESTATION BANK (Theory)

    Core Java:1. What is JVM ( CR Pg no -9,14m)2. Explain data tp!s a"aila#l! in Ja"a. ( CR Pg no. $$,$%m)$. Explain &ith !xampl! th! 'on'!pt o Pa'ag!. (Class-2*)4. What is +nt!a'! Explain &ith !xampl! (Class $/)0. Wit! th! "aios a''!ss modii!s s!d in Ja"a

    %. Explain th! s! o sp!, this, inal !&ods. (Class 21)*. Explain Wapp! 'lass!s. (Class 01)

    AT! APP"ET! E#ENT $AN%"IN&:1. Wit! ad"antag!s disad"antag!s o 3ppl!t "s. 3ppli'ations. (Class 09)2. Explain li! ''l! o an appl!t.$. Explain th! 'ompon!nts s!d in 3W, &ith pop! m!thods !"!nt th! sppot.4. Wit! di!!nt tp!s o laots a"aila#l!.0. Explain 3nonmos 'lass &ith !xampl!.%. Explain 5!l!gation E"!nt Mod!l.*. What a! list!n!s Explain n'tioning o an $ list!n!s.

    6. What is th! pima di!!n'! #!t&!!n a Windo& Pan!l9. What a! th! th!! appoa'h!s to handl! !"!nts1/. Explain 7appl!t8 tag.11. Explain 3W 'lass i!a'h.12. Explain 3dapt! 'lass &ith !xampl!.

    SIN&:1. Wit! th! Mod!l-Vi!&-Contoll! patt!n.2. Wit! th! !at!s o :&ing.$. Wit! th! "aios :&ing 'ompon!nts a"aila#l!.4. Explain di!!nt laots a"aila#l! &ith s&ing.

    0. Explain di!!nt !xt inpt 'ontols a"aila#l!.%. Compa! a&t s&ing.

    MU"TIT$'EA%IN&:1. What is th!ading Explain Ja"a h!ad mod!l.2. Explain t&o tp!s o Mltitasing.$. Explain ;i! C'l! o a h!ad.4. Explain stat!s o h!ad.0. o& th! h!ads 'an #! '!at!d Explain &ith !xampl!.%. Explain is3li"!() 5!mon th!ad

    9. o& th! mlti th!ads 'an #! sn'honi=!d1/.o& th! int!th!ad 'ommni'ation is possi#l!

    (?sing &ait(), noti(), notiall() m!thods.)

    INPUTOUTPUT USIN& ST'EAMS :

    1. Explain

  • 8/17/2019 MCA-II Java Programming QB

    2/6

    *. Explain 5at+npt:t!am 'lass &ith all a"aila#l! m!thods..6. Explain list() m!thod.9. Explain Random3''!ss@il! 'lass &ith th! 'onst'tos !at!s.1/.Explain th! 'on'!pt o s!iali=ation d!s!iali=ation &ith !xampl!.

    NETO'KIN&:1. What is Compt! n!t&oing Explain CP>+P, ?5P poto'ols.2. What is :o'!t Explain th! 'on'!pt o R!s!"!d :o'!ts.

    $. Explain th! 'lass!s a"aila#l! in

    data#as! sing J5C 'onn!'ti"it.%. Wit! th! J5C data tp!s a"aila#l!.*. Explain $-ti! a'hit!'t!.6. Wit! th! tp!s o P!pa!d:tat!m!nt &ith !xampl!s.9. Wit! shot not! on Calla#l!:tat!m!nt.

    SE'#"ETS:1. Explain li! ''l! o :!"l!t.2. Explain th! t&o tp!s o s!"l!t 'lass!s a"aila#l!. (B!n!i':!"l!t

    ttp:!"l!t)$. Wit! th! di!!n'! #!t&!!n 3ppl!t :!"l!t.4. o& to handl! s!ssions in :!"l!ts.0. What a! 'ooi!s o& to '!at! th!m%. o& to ma! a th!ad sa! s!"l!t.*. Explain ttp:!"l!tR!D!st ttp:!"l!tR!spons!.

    'MI:1. Explain RM+ a'hit!'t!.2. Wit! th! 4 st!ps !Di!d to s! !mot! m!thods.$. Explain aming 'lass.

    JA#A BEANS EJB:1. Explain ;i! ''l! o #!an.2. What a! #!ans sp!'ii'ations$. Explain ad"antag!s o Ja"a !ans.4. What a! th! di!!nt pop!ti!s and m!thods in

  • 8/17/2019 MCA-II Java Programming QB

    3/6

    MCA-II Java ProgrammingQUESTATION BANK (Pra*+i*a,)

     AT! APP"ET! E#ENT $AN%"IN&1. Wit! an 3W pogam to add th!! s'oll#as indi'ating !d, g!!n #l! 'olo.

    h! #a'gond 'olo o am! shold 'hang! a''oding to th! "al! s!l!'t!d ins'oll#a.

    2. Wit! an appl!t to &!l'om! th! s! # his nam!. h! s!s nam! shold #!

    a''!pt!d # th! M; paam!t!.$. Wit!

  • 8/17/2019 MCA-II Java Programming QB

    4/6

    1/. Wit! a pogam to a''!pt std!nts d!tails, '!at! th! o#

    #a' all stings s!nt # 'li!nt. + 'li!nt s!nds !xit, th! s!"! pg. :hold t!minat!.#. Wit! a

  • 8/17/2019 MCA-II Java Programming QB

    5/6

    *. Wit! a J5C pogam to in'!as! th! sala o all !mplo!ss # Rs. 2///>- o thos! &ho a! ha"ing sala l!ss than Rs. 1////.

    6. Wit! a J5C pogam to displa a sm o salai!s d!patm!nt &is!.

  • 8/17/2019 MCA-II Java Programming QB

    6/6

    SE'#"ET1. Wit! a s!"l!t to d!sign M; pag!, &ith pop! titl!, h!adings.2. Wit! a s!"l!t to 'h!' s!nam! pass&od pass!d om html pag!. + it

    is :'ottK tig!K, displa &!l'om! m!ssag! !ls! sho& th! sam! htmlpag! again. LWith !s.s!ndR!di!'t (httpN>>lo'alhostN6/6/>login.htmlK)

    $. W3P to a''!pt t&o nm#!s om html displa addition o th!m.4. Wit! a :!"l!t to displa html oms 'ontol nam!s th!i "al!s.0. Wit! :!"l!t to '!at! html pag! o th! !!d#a' o pod't. :to! th!

    !!d#a' in a data#as!.%. Wit! a s!"l!t to maintain a shopping 'at, sing s!ssion "aia#l!s.*. Wit! a s!"l!t to add a Cooi! to 'li!nts ma'hin! that sto!s s!nam!,

    '!nt dat! tim!. 5ispla th! sam!.6. Wit! a s!"l!t to a''!pt a nam! o #a'gond 'olo om s!, 'hang! th!

    #a'gond 'olo as p! th! 'olo !nt!!d. L5!sign M; sing s!"l!t.9. 5!sign M; pag! o !-mail !gistation, &hi'h &ill 'all s!"l!t pogam,

    that &ill a''!pt all d!tails om html pag! &ill sto! it in a ta#l!. 3ssm!sita#l! ta#l! st't!.

    1/. Wit! a s!"l!t pogam to a''!pt #oo nam! om s!, om M;. + #oo is p!s!nt in a ta#l!, th!n displa #oo d!tails. 3ssm! sita#l! ta#l!st't!.

    11.Wit! a s!"l!t pogam that &ill displa all !mplo!! d!tails, d!patm!ntnm#! &is!.

    'MI1. Wit! a !mot! m!thod h!llo() that &ill displa h!llo m!ssag! &ith '!nt

    tim! to th! 'li!nt, &h!n 'li!nt g!ts 'onn!'t!d.2. Wit! a !mot! m!thod 3mstong (int) that &ill ta! on! int!g! nm#! 

    om 'li!nt, !tn &h!th! th! nm#! is 3mstong o not.$. Wit! a !mot! m!thod 'h!' (:ting, :ting) that &ill a''!pt a loginnam!

    pass&od om 'li!nt. + it is s'ottK tig!K &ill !tn "alid login !ls!in"alid login.

    4. Wit! a !mot! m!thod 'ont(:ting) that &ill ta! on! :ting om 'li!nt,!tns th! nm#! o 'haa't!s in a :ting.

    0. Wit! a !mot! m!thod palin(:ting) that &ill ta! on! :ting om 'li!nt, 'h!'s &h!th! th! sting is Palindom! o not!.