Understanding inheritance in java : SuperclassVariable can reference a Subclass Variable

Migrated from logicaletter.com Superclass : A parent class Subclass : A child class that inherits Superclass class A{ //superclass or parent class //some generic code } class B extends A{ //subclass or child class of A //some generic code } it may seem esoteric at first, but its true that superclass variable can reference a subclass object .This aspect is quite useful when superclass object needs parameters same as subclass object which is not part of that superclass object....

October 23, 2018 · voidash

The Art of Multithreading in java(Java programming guide)

Migrated from logicaletter.com Process Based Vs Thread Based In your operating system , you are able to run many processes at a single time i.e you can scroll through your facebook messages in Google Chrome while watching new Avengers movie in VLC media player. This concept is process based thread model and Multi Threaded operating system can perform such tasks.If you want to learn more about operating system on the basis of processing , you can visit here....

June 8, 2018 · voidash

What are Generics in Java

Migrated from logicaletter.com Lets start why generics is needed rather than identifying what generics really are. Through the use of generics one can create classes,interfaces and methods and specify what kind of data it is working upon. Lets start up with example : Many algorithms logic is same no matter what kind of data they are working upon. Stack algorithm logic is same no matter which type of data you are working with ,i....

June 2, 2018 · voidash