Jump to content
Sign in to follow this  
albertlee

Programming big and efficient....

Recommended Posts

If you knew an OO programming language...Let's say Java

 

Whenever you are programming, you always use the jdk doc, especially its api

 

but since it is quite a big doc, how can you know where you can find the best class to make an object for a better function??

 

Secondly, if you are programming big, how do you apply UML? do you just draw the diagrams your self???

By the way, finally we'd have alot of .class files... I have seen people made them in just one *.exe file, how is it possible??

 

Albert

Share this post


Link to post
Share on other sites
how can you know where you can find the best class to make an object for a better function??

 

that's just part of learning to use it ;)

Share this post


Link to post
Share on other sites

well,

 

java provides massive, zillion amount of classes.....

 

each class is related one another.... or inherited

 

To me, I think we would not even use half of all the classes.....

 

ALthough the doc provide information for each class, but it is really huge!

 

By the way, as in the doc, Object class is the most important, because it is the super father class......

 

Maybe we could find out a big idea by finding the major classes of how java is based on??

 

Albert

Share this post


Link to post
Share on other sites
If you knew an OO programming language...Let's say Java

 

Whenever you are programming' date=' you always use the jdk doc, especially its api

 

but since it is quite a big doc, how can you know where you can find the best class to make an object for a better function??

 

Secondly, if you are programming big, how do you apply UML? do you just draw the diagrams your self???

By the way, finally we'd have alot of .class files... I have seen people made them in just one *.exe file, how is it possible??

 

Albert[/quote']

 

It's been a while since I used Java, I'm a C++ user.

 

When you're looking for a class to inherit from it's as simple as looking for the one with the most useful behaviour that you need. Since you're still learning you'll make mistakes but you'll learn the ins/outs of other classes and know how to use those in the future.

There are sometimes several classes you can inherit from and they'll each do the job nicely.

 

As for building a Java project into a .exe there are linkers that can do that. Check some Java programming sites with programming utility applications on them.

I used to use Java++ which I'm pretty certain can create .exe files.

Share this post


Link to post
Share on other sites

Just out of interest....

 

How long does the Bell Lab (I believe) take to make C language from assembly language?

 

and

 

How long does Sun take to make Java from C++ language??

 

Albert

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.