Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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

overloaded??

 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

answer 1 and 4..
how come 4..
might be i didnt get the question correctly!!
can anyone explain please..

thanks
sri
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1 is correct because it is overloading the given method.
4 is correct because it is a new method.

adding 2 will result in compilation error, bcoz we are just chaning the return type with same method signature.

3 is nothing but the same method
 
srikanth reddy
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yah ..i overlooked it .. thanks
 
premraj cheguri
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Srikanth r u from Hyderabad. mail me at prem4245@yahoo.co.in. when r u planing to go for scjp exam. im planing to go for java 5.0 n how abt u?
 
srikanth reddy
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes prem iam from hyd...willing to give soon.....iam confused that on the net there are so many mocks i have seen that contain awt and io packages...i followed the syllabus accor to KnB...so frnds are listeners and datastreams are present.....

thanks
sri
 
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

For SCJP 1.4 ...there arent AWT and IO....

Have a look here...

http://www.sun.com/training/catalog/courses/CX-310-035.xml

For SCJP 1.5...

we have IO...

(Check in section 3)
http://www.sun.com/training/catalog/courses/CX-310-055.xml

 
Whatever you say buddy! And I believe this tiny ad too:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic