answersLogoWhite

0


Best Answer

A Scenario where one class is inheriting/extending the bahavior of another class which in turn is inheriting behavior from yet another class.

Ex: public class Automobile {…}

Public class Car extends Automobile {…}

Public class Ferrari extends Car {…}

This multilevel inheritance actually has no limitations on the number of levels it can go. So as far as java goes, it is limitless. But for maintenance and ease of use sakes it is better to keep the inheritance levels to a single digit number.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: You want multilevel inheritance program in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why we use io packages in multilevel inheritance?

Multilevel InheritanceA Scenario where one class is inheriting/extending the bahavior of another class which in turn is inheriting behavior from yet another class.Ex: public class Automobile {…}Public class Car extends Automobile {…}Public class Ferrari extends Car {…}This multilevel inheritance actually has no limitations on the number of levels it can go. So as far as java goes, it is limitless. But for maintenance and ease of use sakes it is better to keep the inheritance levels to a single digit number.A point to note here is that - using io packages is not mandatory. You need to use them only if you want to have some i/o operations in your code.


Can a java program has two different variable?

Yes. You can have as many variables as you want in Java


Where java program started?

If it is already compiled, you can start your Java program from the command line. Just type java myclass replacing "myclass" with the program you want to start - a program with the ".class" extension, for example, myclass.class.


How do you program a reverse auto loan calculator in JAVA?

In order to program a reverse auto loan calculator in JAVA, you are going to need a lot of experience with JAVA. There are online tutorials that can help you set up with fundamentals of JAVA so that you will be able to create almost any basic program you want.


What is needed to run java?

You must have the Java Run-time Environment installed on your computer. Steps: 1. Open Command Prompt 2. Enter the command: javac class.java 3. Enter the command: java <classfilename> (without the .java or .class extension) The javac command will compile your java source file and create a class file. The java command will execute or run your java class file.

Related questions

Why we use io packages in multilevel inheritance?

Multilevel InheritanceA Scenario where one class is inheriting/extending the bahavior of another class which in turn is inheriting behavior from yet another class.Ex: public class Automobile {…}Public class Car extends Automobile {…}Public class Ferrari extends Car {…}This multilevel inheritance actually has no limitations on the number of levels it can go. So as far as java goes, it is limitless. But for maintenance and ease of use sakes it is better to keep the inheritance levels to a single digit number.A point to note here is that - using io packages is not mandatory. You need to use them only if you want to have some i/o operations in your code.


Can a java program has two different variable?

Yes. You can have as many variables as you want in Java


Where java program started?

If it is already compiled, you can start your Java program from the command line. Just type java myclass replacing "myclass" with the program you want to start - a program with the ".class" extension, for example, myclass.class.


It is not an error not to end a Java file name with the java extension?

If you want to compile a java program the name of that source code must end with extension .java


How do you program a reverse auto loan calculator in JAVA?

In order to program a reverse auto loan calculator in JAVA, you are going to need a lot of experience with JAVA. There are online tutorials that can help you set up with fundamentals of JAVA so that you will be able to create almost any basic program you want.


How do you use java technology?

it depends on what you mean... if you want to program it id then suggest you started with a program called robocode it teaches to learn java. other wise if your trying to access a program then do a system search.


What is needed to run java?

You must have the Java Run-time Environment installed on your computer. Steps: 1. Open Command Prompt 2. Enter the command: javac class.java 3. Enter the command: java <classfilename> (without the .java or .class extension) The javac command will compile your java source file and create a class file. The java command will execute or run your java class file.


Once you have downloaded and installed the Java SE JDK Update 26 for Windows how do you open it-It shows up as a folder and it doesn't open java program when clicked on?

The Java Development Kit is not a program designed to be opened up and used, rather it is a folder of command line tools used to compile java programs. If you want to use a program to create/edit java code that automates the compiling process check out NetBeans or Eclipse. Also, if you are trying to open an already compiled java program with it, read the documentation that came with the java application on how to run it.


Do you have type a file extension if you want to include the file name?

No, you do not have to type the file extension if you want to include the file name. You only use file extension to make the specific file be able to be run by the program. Example: I want to make my file into a java program so i can use with a specific type of program which only runs java file i put .jav at the end of the title to make it from a text file to a java file.


What is Date class in java?

i am management student,and want to know answer that ,what is date class in java?


A simple java program for line break or line wrap?

I believe its just \n where you want to break the line


How do you write program in java?

You can write it with Windows NotePad, although using an IDE such as NetBeans or Eclipse is recommended. If you mean you want to learn Java, take a look at the tutorials at the Oracle site.