Category Archives: Basic
internal nodes – external nodes
Internal nodes: Nodes which have sub nodes or children. External nodes: Nodes which do not have any sub nodes. They are also known as leaves.
exceptional handling – finally
The way to handle anomalous situations during run time. Finally, is a block of code which is executed with or without exceptions
Big ‘O’ notation – complexities O(n2) and O(2n)
The unit of measurement of efficiency of an algorithmA theoretical measure of the execution of an algorithm, usually the time or memory needed, given the problem size n, which is usually the number of items. Two factors are Time and … Continue reading
Wrapper Class
is a class which defines a primitive data type. A Wrapper class is a class whose object wraps or contains a primitive data types. Wrapper class in java provides the mechanism to convert primitive into object and object into primitive. … Continue reading
Interface – Class
An interface is a blueprint of a class having static constants and abstract methods. An interface is a reference type in Java. A class that contains public static final data types and declaration of abstract method Class contains static or … Continue reading
fall through condition in switch()case
If a case does not end with a break statement, it will execute the following cases until and unless it counters a break statement. This condition is called fall through condition
Binary tree
1. It is acyclic 2. No two node can be similar or identical 3. It is recursive 4. There is only one unique path between two nodes. 5. Rooted data structure OR Linear data structure OR Dynamic data structure 6. … Continue reading
this() and Super()
this ( ) is used to refer to the instance variables of the class. super ( ) is used to invoke the super class’s constructor/ instance variable/methods
CONSTRUCTOR – Overloading
Java allows having more than one constructor inside one Class.In Constructor overloading you have multiple constructors with a different signature. The biggest advantage of Constructor overloading is flexibility which allows you to create the object in a different way for … Continue reading
POLYMORPHISM
Polymorphism in Java has two types: Compile time polymorphism (static binding) Method overloading is an example of static polymorphism, Static Polymorphism: is achieved through method overloading. ie. there are several methods present in a class having the same name but … Continue reading