Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a program to create a binary Tree ?

Answer Posted / marshal

public class BinaryTree
extends AbstractTree
{
protected Object key;
protected BinaryTree left;
protected BinaryTree right;

public BinaryTree (
Object key, BinaryTree left, BinaryTree right)
{
this.key = key;
this.left = left;
this.right = right;
}

public BinaryTree ()
{ this (null, null, null); }

public BinaryTree (Object key)
{ this (key, new BinaryTree (), new BinaryTree()); }
// ...
}

Is This Answer Correct ?    7 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is integer a class?

1013


What is the use of object and class classes?

993


What advantage do java's layout managers provide over traditional windowing systems?

911


What is regex in java?

899


What are keywords give examples?

997


When does a class need a virtual destructor?

949


What is the purpose of garbage collection in java? When is it used?

997


What does java ide mean?

1054


how is final different from finally and finalize in java?

994


What is used of static keyword in java?

1002


What are three types of loops in java?

1049


What is re-factoring in software?

976


What is the purpose of nested class in java?

1014


What is java Applet?

1033


How can you avoid serialization in child class if the base class is implementing the serializable interface?

1021