• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is the answers of these questions?

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


thanks you all
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the best way for you to learn something from these questions would be if you tried to predict what the answers are, and then simply compile and run the programs to check it your predictions were correct. If you then find they were wrong, we can try to help you understand why. You're much more likely to learn this way than if we just gave the answers.
 
kumarth ravi
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you for reply.I have been following the same suggestion what you have said. My doubt is, answeres which are given for those problems are not 100% guarante or not.Till now I believed the answeres are 100% correct.After getting these type of confused questions ,I decided to get the based on the
compilation and running.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My guess (before I try to run this)

Question 12
false,true

Two seperate objects are created which makes part 1 false. I.e. not the same Long object.

The two objects share the same value which makes part 2 correct?
 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello kumarth ravi,

I think you have not got what Ulf said. This is a place where you can get your doubts or confusions away. As its a common place (forum) run by and with several people, we need to abide certain rules or practices. Keeping that in mind, i would like to say a few things.

  • First of all, what do you think the answers would be? Means, your predictions?
  • Are the answers correct? If not, lets discuss on why the answers NOT correct (based on your assumption) and how they should be?



  • HtH.
     
    Willie Smits can speak 40 languages. This tiny ad can speak only one:
    a bit of art, as a gift, that will fit in a stocking
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic