Home > Archive > Java Help > October 2004 > java programe help
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
java programe help
|
|
| rohit srivastava 2004-10-26, 9:00 am |
| Answers in programming language : Java
Question 1: Explain the difference between the following modifiers
through examples:
§ Abstract
§ Final Class
§ Public
Question 2: Through a small example, Explain the following:
i) Concept of Subclasses, Super classes and Inheritance
ii) What is the name of the top most class in the Java and where it
is defined
Question 3: List and explain the main features of Java (for e.g.
multi-threading) and identify the classes/package through which they
are supported.
This is a Project Assignment. Answer the following question using
Java.
Suppose that you have to computerize a car show room which keeps the
latest models of cars, and provides post sales services to customers.
(i) List all important classes, their data structures and other
attributes.
(ii) Draw an inheritance diagram for the entire application which
should comprise of base classes and sub-classes.
(iii) Implement at least 3 modules.
(iv) Describe different reports to be produced by the programmer.
i shall be thankfull to those who will help me
| |
| TechBookReport 2004-10-26, 3:59 pm |
| rohit srivastava wrote:
> Answers in programming language : Java
>
>
> Question 1: Explain the difference between the following modifiers
> through examples:
>
> § Abstract
> § Final Class
> § Public
>
> Question 2: Through a small example, Explain the following:
>
> i) Concept of Subclasses, Super classes and Inheritance
> ii) What is the name of the top most class in the Java and where it
> is defined
>
> Question 3: List and explain the main features of Java (for e.g.
> multi-threading) and identify the classes/package through which they
> are supported.
>
>
>
> This is a Project Assignment. Answer the following question using
> Java.
>
> Suppose that you have to computerize a car show room which keeps the
> latest models of cars, and provides post sales services to customers.
>
> (i) List all important classes, their data structures and other
> attributes.
> (ii) Draw an inheritance diagram for the entire application which
> should comprise of base classes and sub-classes.
> (iii) Implement at least 3 modules.
> (iv) Describe different reports to be produced by the programmer.
>
>
>
>
> i shall be thankfull to those who will help me
Don't be ridiculous. Go and do your own homework.
| |
| Aki \Sus\ Laukkanen 2004-10-26, 3:59 pm |
| rohit srivastava wrote:
> Answers in programming language : Java
>
>
> Question 1: Explain the difference between the following modifiers
> through examples:
>
> § Abstract
> § Final Class
> § Public
>
> Question 2: Through a small example, Explain the following:
>
> i) Concept of Subclasses, Super classes and Inheritance
> ii) What is the name of the top most class in the Java and where it
> is defined
>
> Question 3: List and explain the main features of Java (for e.g.
> multi-threading) and identify the classes/package through which they
> are supported.
>
>
>
> This is a Project Assignment. Answer the following question using
> Java.
>
> Suppose that you have to computerize a car show room which keeps the
> latest models of cars, and provides post sales services to customers.
>
> (i) List all important classes, their data structures and other
> attributes.
> (ii) Draw an inheritance diagram for the entire application which
> should comprise of base classes and sub-classes.
> (iii) Implement at least 3 modules.
> (iv) Describe different reports to be produced by the programmer.
>
>
>
>
> i shall be thankfull to those who will help me
Hint:
See:
1. http://www.mindprod.com/jgloss/homework.html
,especially this part:
> "If you simply post your homework assignment verbatim, people will
> slap you senseless. Don't even dare directly quote so much as a
phrase > from it!"
2. your Java textbook
Those should provide the answers, supposing you are not too lazy to do
some reading.
--
-Aki "Sus" Laukkanen
| |
|
| On 26 Oct 2004 04:38:31 -0700, r9937@india.com (rohit srivastava)
wrote:
>Answers in programming language : Java
>
>
>Question 1: Explain the difference between the following modifiers
>through examples:
>
>§ Abstract
A style of Art.
>§ Final Class
The last class before Summer vacation.
>§ Public
All of us.
>Question 2: Through a small example, Explain the following:
>
>i) Concept of Subclasses, Super classes and Inheritance
I could go on about what Hitler said, but I think all classes are
equal.
>ii) What is the name of the top most class in the Java and where it
>is defined
At my college, the top class was our Senior Seminar.
>Question 3: List and explain the main features of Java (for e.g.
>multi-threading) and identify the classes/package through which they
>are supported.
My suitcate.
>This is a Project Assignment. Answer the following question using
>Java.
>
>Suppose that you have to computerize a car show room which keeps the
>latest models of cars, and provides post sales services to customers.
>
>(i) List all important classes, their data structures and other
>attributes.
b.c.a
a.c.b
>(ii) Draw an inheritance diagram for the entire application which
>should comprise of base classes and sub-classes.
1 -> 2 -> 3
>(iii) Implement at least 3 modules.
Module 1, Module 2, Module 3
>(iv) Describe different reports to be produced by the programmer.
Sick report, status report.
>
>i shall be thankfull to those who will help me
--
now with more cowbell
| |
| Oscar kind 2004-10-26, 3:59 pm |
| rohit srivastava <r9937@india.com> wrote:
> Question 1:
<cut: theoretical homework assignment>
> Question 2:
<cut: theoretical homework assignment>
> Question 3:
<cut: theoretical homework assignment>
> This is a Project Assignment. Answer the following question using
> Java.
<cut: practical homework assignment>
> i shall be thankfull to those who will help me
Forget it.
You obviously have no clue whatsoever about :
- *why* you get homework,
- *why* you need to do it _yourself_, and
- the purpose of education in general.
Don't spend any time on your education until you know the answers to all
three points above: it's wasted energy (you've just proven that).
--
Oscar Kind http://home.hccnet.nl/okind/
Software Developer for contact information, see website
PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2
| |
| Stefan Schulz 2004-10-27, 3:58 am |
| On 26 Oct 2004 04:38:31 -0700, rohit srivastava <r9937@india.com> wrote:
> Answers in programming language : Java
>
>
> Question 1: Explain the difference between the following modifiers
> through examples:
>
> § Abstract
Declares that the class contains an abreviated, yet concise summary of
it's features before any more elaborate methods. This is useful to
to quickly decide if a given class can be useful for you
> § Final Class
Declares that this class can not ever contain references to other objects.
The garbage collector needs to know which classes are "final" in order to
be able to decide what can be deleted to create new objects.
Think of "final classes" as the leafs in the Object Tree.
> § Public
Declares that the modified object is considered "public property". This
means that all threads (see there) do all the work in methods of this
class communally. Usually considered a bad idea, but left in the language
specification by insistance of the USSR
> Question 2: Through a small example, Explain the following:
>
> i) Concept of Subclasses, Super classes and Inheritance
A Subclass is a class contained by another class. Subclasses were added
to the language to allow more complicated code.
Super Classes are classes that have proven their usefulness and utility
time and again. Once a year, in a popular vote, this year's five super
classes are elected. Super Classes may display "This is a Super Class"
on the screen whenever their methods are called
Inheritance is the concept of destroying an object to access the data
it contains. Just like in real life, you inherit valuable things
once someone close to you dies. Since you can not access data of
"life" objects, they need to die before you can extract their information
> ii) What is the name of the top most class in the Java and where it
> is defined
The Top class is without a doubt
javax.security.auth.login.AccountNotFoundException. Why? because it
became a super class three times in a row, and the comitee decided to
commemorate that event by declaring it the top class.
> Question 3: List and explain the main features of Java (for e.g.
> multi-threading) and identify the classes/package through which they
> are supported.
Trick Question. There are no features. There are only bugs.
> This is a Project Assignment. Answer the following question using
> Java.
>
> Suppose that you have to computerize a car show room which keeps the
> latest models of cars, and provides post sales services to customers.
>
> (i) List all important classes, their data structures and other
> attributes.
> (ii) Draw an inheritance diagram for the entire application which
> should comprise of base classes and sub-classes.
> (iii) Implement at least 3 modules.
> (iv) Describe different reports to be produced by the programmer.
Hmm, car show room. Kind of a classic example. Many plebians will try to
convince you that you need classes like 'Car'. But they forget the basic
classes like CuteSalesGirl or DumbCustomerWithHeapsOfUnusedCashToSpare
.
Begin by building a GUI that supports the latest in 3d technology to
display the cars on display (and the CuteSalesGirl).
> i shall be thankfull to those who will help me
I shall hope thou findest these humble suggestions helpful, sire
j/k
Stefan
--
Whom the gods wish to destroy they first call promising.
| |
| Hal Rosser 2004-10-27, 3:58 am |
| ROFL - I love this one!
"Stefan Schulz" <terra@spacetime.de> wrote in message
news:opsgh1w0zeq1fd9p@localhost...
> On 26 Oct 2004 04:38:31 -0700, rohit srivastava <r9937@india.com> wrote:
>
>
> Declares that the class contains an abreviated, yet concise summary of
> it's features before any more elaborate methods. This is useful to
> to quickly decide if a given class can be useful for you
>
>
> Declares that this class can not ever contain references to other objects.
> The garbage collector needs to know which classes are "final" in order to
> be able to decide what can be deleted to create new objects.
>
> Think of "final classes" as the leafs in the Object Tree.
>
>
> Declares that the modified object is considered "public property". This
> means that all threads (see there) do all the work in methods of this
> class communally. Usually considered a bad idea, but left in the language
> specification by insistance of the USSR
>
>
> A Subclass is a class contained by another class. Subclasses were added
> to the language to allow more complicated code.
>
> Super Classes are classes that have proven their usefulness and utility
> time and again. Once a year, in a popular vote, this year's five super
> classes are elected. Super Classes may display "This is a Super Class"
> on the screen whenever their methods are called
>
> Inheritance is the concept of destroying an object to access the data
> it contains. Just like in real life, you inherit valuable things
> once someone close to you dies. Since you can not access data of
> "life" objects, they need to die before you can extract their information
>
>
> The Top class is without a doubt
> javax.security.auth.login.AccountNotFoundException. Why? because it
> became a super class three times in a row, and the comitee decided to
> commemorate that event by declaring it the top class.
>
>
> Trick Question. There are no features. There are only bugs.
>
>
> Hmm, car show room. Kind of a classic example. Many plebians will try to
> convince you that you need classes like 'Car'. But they forget the basic
> classes like CuteSalesGirl or DumbCustomerWithHeapsOfUnusedCashToSpare
.
>
> Begin by building a GUI that supports the latest in 3d technology to
> display the cars on display (and the CuteSalesGirl).
>
>
> I shall hope thou findest these humble suggestions helpful, sire
>
> j/k
>
> Stefan
>
> --
>
> Whom the gods wish to destroy they first call promising.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.781 / Virus Database: 527 - Release Date: 10/21/2004
| |
| TechBookReport 2004-10-27, 8:57 am |
| Stefan Schulz wrote:
> On 26 Oct 2004 04:38:31 -0700, rohit srivastava <r9937@india.com> wrote:
>
>
>
> Declares that the class contains an abreviated, yet concise summary of
> it's features before any more elaborate methods. This is useful to
> to quickly decide if a given class can be useful for you
>
>
>
> Declares that this class can not ever contain references to other objects.
> The garbage collector needs to know which classes are "final" in order to
> be able to decide what can be deleted to create new objects.
>
> Think of "final classes" as the leafs in the Object Tree.
>
>
>
> Declares that the modified object is considered "public property". This
> means that all threads (see there) do all the work in methods of this
> class communally. Usually considered a bad idea, but left in the language
> specification by insistance of the USSR
>
>
>
> A Subclass is a class contained by another class. Subclasses were added
> to the language to allow more complicated code.
>
> Super Classes are classes that have proven their usefulness and utility
> time and again. Once a year, in a popular vote, this year's five super
> classes are elected. Super Classes may display "This is a Super Class"
> on the screen whenever their methods are called
>
> Inheritance is the concept of destroying an object to access the data
> it contains. Just like in real life, you inherit valuable things
> once someone close to you dies. Since you can not access data of
> "life" objects, they need to die before you can extract their information
>
>
>
> The Top class is without a doubt
> javax.security.auth.login.AccountNotFoundException. Why? because it
> became a super class three times in a row, and the comitee decided to
> commemorate that event by declaring it the top class.
>
>
>
> Trick Question. There are no features. There are only bugs.
>
>
>
> Hmm, car show room. Kind of a classic example. Many plebians will try to
> convince you that you need classes like 'Car'. But they forget the basic
> classes like CuteSalesGirl or DumbCustomerWithHeapsOfUnusedCashToSpare
.
>
> Begin by building a GUI that supports the latest in 3d technology to
> display the cars on display (and the CuteSalesGirl).
>
>
>
> I shall hope thou findest these humble suggestions helpful, sire
>
> j/k
>
> Stefan
>
Nice!
Pan
========================================
===========
TechBookReport: http://www.techbookreport.com/JavaIndex.html
| |
| Aki \Sus\ Laukkanen 2004-10-27, 8:57 am |
| Bryce wrote:
> On 26 Oct 2004 04:38:31 -0700, r9937@india.com (rohit srivastava)
> wrote:
>
>
>
>
> A style of Art.
>
>
>
>
> The last class before Summer vacation.
>
>
>
>
> All of us.
>
>
>
>
> I could go on about what Hitler said, but I think all classes are
> equal.
>
>
>
>
> At my college, the top class was our Senior Seminar.
>
>
>
>
> My suitcate.
>
>
>
>
> b.c.a
> a.c.b
>
>
>
>
> 1 -> 2 -> 3
>
>
>
>
> Module 1, Module 2, Module 3
>
>
>
>
> Sick report, status report.
>
>
>
>
>
> --
> now with more cowbell
:-)
Not the answers he wanted, I think.
--
-Aki "Sus" Laukkanen
| |
| Aki \Sus\ Laukkanen 2004-10-27, 8:57 am |
| Stefan Schulz wrote:
> On 26 Oct 2004 04:38:31 -0700, rohit srivastava <r9937@india.com> wrote:
>
>
>
> Declares that the class contains an abreviated, yet concise summary of
> it's features before any more elaborate methods. This is useful to
> to quickly decide if a given class can be useful for you
>
>
>
> Declares that this class can not ever contain references to other objects.
> The garbage collector needs to know which classes are "final" in order to
> be able to decide what can be deleted to create new objects.
>
> Think of "final classes" as the leafs in the Object Tree.
>
>
>
> Declares that the modified object is considered "public property". This
> means that all threads (see there) do all the work in methods of this
> class communally. Usually considered a bad idea, but left in the language
> specification by insistance of the USSR
>
>
>
> A Subclass is a class contained by another class. Subclasses were added
> to the language to allow more complicated code.
>
> Super Classes are classes that have proven their usefulness and utility
> time and again. Once a year, in a popular vote, this year's five super
> classes are elected. Super Classes may display "This is a Super Class"
> on the screen whenever their methods are called
>
> Inheritance is the concept of destroying an object to access the data
> it contains. Just like in real life, you inherit valuable things
> once someone close to you dies. Since you can not access data of
> "life" objects, they need to die before you can extract their information
>
>
>
> The Top class is without a doubt
> javax.security.auth.login.AccountNotFoundException. Why? because it
> became a super class three times in a row, and the comitee decided to
> commemorate that event by declaring it the top class.
>
>
>
> Trick Question. There are no features. There are only bugs.
>
>
>
> Hmm, car show room. Kind of a classic example. Many plebians will try to
> convince you that you need classes like 'Car'. But they forget the basic
> classes like CuteSalesGirl or DumbCustomerWithHeapsOfUnusedCashToSpare
.
>
> Begin by building a GUI that supports the latest in 3d technology to
> display the cars on display (and the CuteSalesGirl).
>
>
>
> I shall hope thou findest these humble suggestions helpful, sire
>
> j/k
>
> Stefan
:-) & :-)
Maybe even better than Bryce's answers.
--
-Aki "Sus" Laukkanen
| |
| Alex Hunsley 2004-10-27, 8:57 am |
| rohit srivastava wrote:
> Answers in programming language : Java
>
[snip homework pasted verbatim]
You've failed. And here I mean, you've failed education itself. Its
meaning clearly gone right above your head. Why are you wasting your
time in education?
| |
|
| On Wed, 27 Oct 2004 12:48:12 +0300, "Aki \"Sus\" Laukkanen"
<aki.laukkanenREMOVETHIS@helsinki.fi> wrote:
>
>:-) & :-)
>Maybe even better than Bryce's answers.
It was better. In fact, it was what I was trying to aspire to, but
alas, I lack the imagination...
--
now with more cowbell
| |
| Tor Iver Wilhelmsen 2004-10-28, 3:57 am |
| Alex Hunsley <lard@tardis.ed.ac.molar.uk> writes:
> You've failed. And here I mean, you've failed education itself. Its
> meaning clearly gone right above your head. Why are you wasting your
> time in education?
No, he has succeeded, but in a different field: Management. Posting an
assignment on news so that someone else does it is called delegation.
:)
He will grow up to be a fine pointy-haired boss some day.
| |
|
| On 28 Oct 2004 09:38:38 +0200, Tor Iver Wilhelmsen
<tor.iver.wilhelmsen@broadpark.no> wrote:
>Alex Hunsley <lard@tardis.ed.ac.molar.uk> writes:
>
>
>No, he has succeeded, but in a different field: Management. Posting an
>assignment on news so that someone else does it is called delegation.
>:)
>
>He will grow up to be a fine pointy-haired boss some day.
Plus the fact that the subject asks for help with a Java Program...
But then he posts a questionnaire...
--
now with more cowbell
| |
| Alex Hunsley 2004-10-28, 4:00 pm |
| Tor Iver Wilhelmsen wrote:
> Alex Hunsley <lard@tardis.ed.ac.molar.uk> writes:
>
>
>
>
> No, he has succeeded, but in a different field: Management. Posting an
> assignment on news so that someone else does it is called delegation.
> :)
Oh dammit, you're right! :/
I wonder if his course organiser knows he's switched course?
> He will grow up to be a fine pointy-haired boss some day.
As long as he sticks to purely passing off work onto other people and
never doing any himself, he's made!
| |
| Aki \Sus\ Laukkanen 2004-10-28, 4:00 pm |
| Alex Hunsley wrote:
> Tor Iver Wilhelmsen wrote:
>
>
>
> Oh dammit, you're right! :/
> I wonder if his course organiser knows he's switched course?
>
>
> As long as he sticks to purely passing off work onto other people and
> never doing any himself, he's made!
Assuming the "pointy-haired boss" Tor was referring to is the
pointy-haired boss character in the Dilbert comic, there's absolutely no
fear he would even _try_ to actually do some real work. =)
To make up for that, he'll come up with loads and loads of unworkable
ideas instead.
I think this will eventually also be true for the initial poster,
assuming he takes the hint to change curriculums from programming to
management. :)
--
-Aki "Sus" Laukkanen
|
|
|
|
|