• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

drag and drop question

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AssertionError by JVM or Programmer

StackOverFlowError by JVM or Programmer

ExceptionIntializeerError by JVM or Programmer

NoClassdefFoundEror by JVM or Programmer

Second quesiton

Using a reference variable of an interface type instead of a class implementing that interface -->>>???

A class that provides only one specific funcitonalty -->>>>High Cohesion

A class taht directly access member fields of other class -->>>???

When changing the implementaiton of class does not affect classes that use it -->>>???

Now we have four option which map to each of above
High Cohesion,Low Coupling,High Coupling,Low Cohesion

Source:entuware trail test
 
Sheriff
Posts: 9692
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. I think all of the exceptions are thrown by the JVM except for AssertionError

2.it depends whether same option could be used more than one time.

Using a reference variable of an interface type instead of a class implementing that interface -->>>Low Coupling

A class that provides only one specific funcitonalty -->>>>High Cohesion

A class taht directly access member fields of other class -->>>High Coupling

When changing the implementaiton of class does not affect classes that use it -->>>Low Coupling
[ September 28, 2008: Message edited by: Ankit Garg ]
 
mukki pandey
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ankit

from where you got exact answer i was confused i tried to use all options so in thaht way i was wrong
 
Ankit Garg
Sheriff
Posts: 9692
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by mukki pandey:
Ankit

from where you got exact answer i was confused i tried to use all options so in thaht way i was wrong



What do you mean by this. I gave the answer on the basis of what I considered was correct. I also asked you to tell whether it was allowed to use one option more than once.
 
mukki pandey
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
your answer was right but i was thiking that i have to use all options hence i got incorrect

have you given SCJP..i am new to forum targeting for october end
 
Ankit Garg
Sheriff
Posts: 9692
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No I am not SCJP yet. But I know that whenever you encounter any drag and drop question, you will be told whether you have to use all options or you can use some of them multiple times and don't use some of them even once..
 
mukki pandey
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
your answer was right but i was thiking that i have to use all options hence i got incorrect

have you given SCJP..i am new to forum targeting for october end
 
Hey! Wanna see my flashlight? It looks like this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic