Answered Questions

  • we have two buckets, 1 of capacity 3liter and another of 5 liter.we have 5 liters of water.so how will we make combinations such that 1 bucket will have exactly 4 liters of water?

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: anishkumar

    • Feb 28th, 2007


    First pour 5 liter of water in 3 liter container .... now you will have 2 liter remaning in 5 liter...now empty the 3 liter and fill it with 2 liter from the 5 lit container..... now take 5 liter and pour one more liter to 3 liter container ...now you are left with 4 liter in 5 liter container
    5   3
    5    0
    2    3
    2    0
    0    2
    5    2
    4    3

    shivansh Mishra

    • Oct 3rd, 2017

    Fill 3 liters tank with water and pour into 5 liters tank than do it again the whole process. There will be 1 liters water in 3 liters tank. Now 5 liters tanks make it empty after that put the remaini...

    Basavaraj

    • Sep 11th, 2017

    Step 1: Fill the 5 Ltr bucket. Step 2: Pour the 5 Ltr bucket to 3 Ltr bucket now 5 Ltr bucket has 2 Ltr of water. Step 3: Empty the 3 Ltr bucket and pour 2 Ltr remain from 5 Ltr bucket to 3 Ltr. No...

  • What is the main difference between portability and Platform independent ?

    Star Read Best Answer

    Editorial / Best Answer

    Lecks  

    • Member Since Feb-2010 | Feb 22nd, 2010


    I agree it is correct to say that Java is platform independent, but it is due to the Java Virtual Machine. Java programs are only intermediately compiled, which allows adaptation to the given environment it needs to run in later.

    An example of a portability issue is the creation of Unix. The first version was not portable. It was specific only to that computer's architecture. Unix became portable when it was rewritten in C. The new version written in C was portable because C served as a "translator", if you will, between what underlying architecture or devices were physically in the computer and what unix wanted them to do.

    Lecks

    • Feb 22nd, 2010

    I agree it is correct to say that Java is platform independent, but it is due to the Java Virtual Machine. Java programs are only intermediately compiled, which allows adaptation to the give...

    akki21

    • Feb 21st, 2007

    "portability" refers to the ability of a system to support a particular software.it depends on the system configurations."platform independent"JAVA is a platform independent software. it need not be installed for the processing of its program