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

Create an applet for grid layout, Take the Student Choice GUI you created i...

Take the Student Choice GUI you created in Assignment and convert it to an applet.  Because standalone GUI applications and applets are so similar, a lot of the code should be reus

Online super market Applivation, i don''t need any code i need analysis an...

i don''t need any code i need analysis and design only -i need 4 use cases - description - activity diagram -sequence diagram -class diagram - data base diagram

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

Develop the back end of a calculator application, For this assignment, you ...

For this assignment, you will develop the back end of a calculator application. The GUI (graphical user interface) has been provided by your instructor. The application will requir

File I/O, Write a program that reads both the girl and boy files into memor...

Write a program that reads both the girl and boy files into memory using arrays. Then, allow the user to input a name. The program should search through both arrays. If there is

Need support display tiff in internet explorer, Need support Display TIFF i...

Need support Display TIFF in Internet Explorer without ActiveX plugin I would like to get a client side viewer designed that permits user to view TIFF files on IE 8 and IE 9 bro

Advantage of event-delegation over event-inheritance model, Describe advant...

Describe advantage of the event-delegation model over the earlier event-inheritance model ?

Find representative skyline points in to 2 dimensional data, Find represent...

Find representative skyline points in to two dimensional data Project Description: Run skyline algorithm run representative skyline algorithm up to skyline algorithm (Affi

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