Difference between inheritance and polymorphism, JAVA Programming

Assignment Help:

Question 1:

a) What is the meaning of an object-oriented programming?

b) List eight simple types of data in Java

c) Explain how objects and classes are closely related.

d) Give three characteristics of a class and three characteristics of an object.

e) What is the difference between a compiler and an interpreter?

f) State two differences between a variable and an object.

Question 2:

a) Briefly explain the "Conditional Statement", with an example.

b) Describe what an array is and what is its importance?

c) What is a void method?

d) Briefly describe the difference between "Inheritance" and "Polymorphism".

e) Examine the following program and write down the output.
public class Exam
{ public static void main (String [ ]args )
{ String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
System.out.println (alphabet);
System.out.println ("This string contains" + alphabet.length ( ) + "characters.");
System.out.println ("The character at index 4 is" + alphabet.charAt (4));
System.out.println ("The index of the character Z is" + alphabet.indexOf(‘Z'));
}
}


Related Discussions:- Difference between inheritance and polymorphism

1. Create a text file (you can name it sales.txt) that conta, 1. Create a t...

1. Create a text file (you can name it sales.txt) that contains in each line the daily sales of a company for a whole month. Then write a Java application that: a. asks the user fo

Create a wall posting class, Your FaceBooklet application will use the clas...

Your FaceBooklet application will use the classes you wrote for Program 3. Start by creating a copy of your Program 3 project with a new name (say, "Program4"). Note that you ca

What is java rmi, Remote Method Invocation (RMI) is the process of activati...

Remote Method Invocation (RMI) is the process of activating a method on a remotely running object. RMI offers location transparency in the sense that it gives the feel that a metho

What is the basic principle of rmi architecture, The RMI architecture is ba...

The RMI architecture is based on one significant principle: the definition of behavior and the execution of that behavior are separate concepts. RMI allows the code that describes

Javascript to calculate the cost of each book, Write JavaScript code that i...

Write JavaScript code that is executed during form submission to calculate the cost of each book (based on quantity specified) and the overall total cost. The results should be dis

What are the kinds of computer network among nodes, What are the kinds of c...

What are the kinds of computer network according to the distance among nodes? the kinds of computer network according to the distance among nodes are as follows: There are t

Enumerate the java program development and execution steps, Java Program De...

Java Program Development and Execution Steps Java program normally go through five phases. These are 1. Edit, 2. Compile, 3. Load, 4. Verify and 5. Execute Co

Functions, wap to find all the prime palindromic numbers

wap to find all the prime palindromic numbers

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd