Search:

Type: Posts; User: shreerangpande

Search: Search took 0.17 seconds.

  1. Replies
    4
    Views
    2,298

    setting up the JAVA EE environment

    i installed java ee sdk6
    set path variable to the bin of jdk
    i set up the deployment(Apache Tomcat) as well as development environment required for java-ee
    i wrote a html file, a servlet and a...
  2. Thread: Arrays

    by shreerangpande
    Replies
    4
    Views
    1,330

    Re: Arrays

    [B]hey i tried ur question...here is the code i thought about:

    Please don't do the OPs work for him. Help him to understand the problem and to find solutions. Don't spoonfeed full code.
  3. Re: how to implement deep cloning without serialization?

    Thanks for ur reply....with ur help, finally my code is working
  4. Re: how to implement deep cloning without serialization?

    Sir,
    o1 is initialized in the go method above....also i have made o1 an instance variable so that it can be accesed from any other method.
    i want to make a deep clone of o1 and name it o2....so i m...
  5. Re: how to implement deep cloning without serialization?

    [B]Thanks for ur reply:
    i tried out what u suggested:

    import java.util.*;
    class DeepCopy1 implements Cloneable{
    String par;
    DeepCopy1 o1,o2;
    public static void main(String a[])
    {
    ...
  6. Re: how to implement deep cloning without serialization?

    Sorry for not defining clearly earlier......
    in the line

    o2.par=(String)o1.par.clone();

    it is giving compiler error saying clone method has protected access in Object
    But i have already...
  7. how to implement deep cloning without serialization?

    i stumbled upon this problem....pls suggest some way

    --- Update ---

    i tried the following code ...but it is not working:


    class DeepCopy implements Cloneable{
    String par;
    DeepCopy o1;
Results 1 to 7 of 7