Roopak Neevan's Blog

Archive for the ‘Java Concepts : questions’ Category

Java Concept : Why no multiple inheritance

Posted by: Naveen Kapoor on: January 14, 2009

Please refer the below artical for the beautiful Explaination : http://venkatsadasivam.wordpress.com/2008/08/02/why-multiple-inheritance-is-not-allowed-in-java/

Java Concepts : Serialization

Posted by: Naveen Kapoor on: December 29, 2008

Java allows us to create reusable objects in memory. All of those objects exist only as long as the Java virtual machine. With object serialization, we can flatten our objects and reuse them in powerful ways.  Object serialization is the process of saving an object’s state to a sequence of bytes, and also rebuilding those [...]

Java Concept : Interface versus Abstract classes

Posted by: Naveen Kapoor on: December 24, 2008

What is the difference between Interface and Abstract class or when to use Interfaces and when to use Abstract class ? Different ppl give different reasons for the same and the major discussions on internet will give the basic differences or I can say the java specifications for this above discussions . After going thru lot [...]

Comparable Interface : Problem while adding object to TreeSet

Posted by: Naveen Kapoor on: November 21, 2008

public class X{   public static void main(String [] arg){      Set s=new TreeSet();      s.add(new Person(20));      s.add(new Person(10));      System.out.println(s);  } } class Person{     int i;     Person(int i){          i = this.i;      } } Can anyone tell me why this code fragment shows me the “ClassCastException”, Using Java 2 1.5 [...]



  • Diya: Hi all, I am a single mum and unfortunately cannot contact baby's father. I went to london high commission with all documents mentioned on the hci lon
  • Maty: Hi, I am planning to apply for the passport of my new born baby. But currently I am in Germany and my wife and baby is in India. My wife will apply
  • mvp: Hi, I have applied for my 3 month old baby at Pune RPO last week. Like other's mentioned the experience is very smooth. I didn't take my baby with
Follow

Get every new post delivered to your Inbox.