answersLogoWhite

0

Import brings all the stuff of a file/API where you have imported it and increases redundancy while inheritance reduces redundancy, increase efficiency of code & makes it manageable. And most important point to remember is that, inheritance is a design followed over the whole project to archive polymorphism.

Thanks & Regards:

Vaibhav Singh

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is difference between java 2 and java 5?

They are different versions. Java 5 is newer than Java 2. Think of it like the difference between the Playstation 1 and the Playstation 3.


How do you import others codes in java?

using servlets, php, and database we can connect import codes into java


Major difference between c and java?

Java is object oriented, C is not...


What is the difference between Java bean and bean?

JAVA beans and coffee beans are two very different things . JAVA beans are used to generate getters and setters. while coffee beans are use to make coffee.


What is the difference between connectivity in java?

kamina


What is difference between connectivity in java?

kamina


List two methods to import java packages?

Java packages can be imported using the import key word in java. There are two ways of importing java programs. 1. you can import the class along with the fully classified class name. Ex: import java.lang.String; 2. you can import all classes in a package using the star symbol. Ex: import java.lang.*;


What is the main difference between UNIX and JAVA?

Unix is an operating system, Java is a language.


Difference between recordset and resultset in java?

Rowset


What is the difference between JAD and JAR?

JAD-Java Application Description JAR-Java archive


What is the difference between java and object oriented programming?

java is a programming language/platform that embodies object oriented programming concepts. The question of what is the difference is like asking what is the difference between cars and a Volvo.


Import a package second time in Java?

You can import a package as many times as you want in Java. The compiler will just ignore any duplicates.