• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ObJC vs. Java -- NEWBIE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObJC vs. Java -- NEWBIE


  • Subject: Re: ObJC vs. Java -- NEWBIE
  • From: Moray Taylor <email@hidden>
  • Date: Thu, 5 Feb 2004 20:40:51 +0000

1. If I code my Cocoa app using Java, how much slower than Objective-C will Java be?

In my experience, launch times are a lot worse with Java, but running speed differences are not too significant.

2. For the .NET WebService access, which is better, Java or ObjC?

No idea.

3. For XML parsing, which is better, Java or ObjC?

Probably Java, Java has very mature XML support, with lots of different ways to do it. XML parsing in Java is commonplace, and you will have no problems in this area.

4. Each time I have installed an app on my new PowerBook, I've had to copy one object (I think it's a "bundle") from a drive image to my Applications directory. I think this is a great install process. If I code my app using Java, will I be able to use this type of install method when my app is distributed?

In Cocoa java, yes, in 'pure' Java, things can get more involved, but it's generally still possible.

5. Java apps on Windows are ugly. If I code my app in Java, will the user know that it's Java when it's running?

Pure Java (i.e. Swing/AWT), the user will notice. Cocoa/Java apps use the Cocoa widgets just like the Obj-C ones do, and are indistinguishable from obj-c apps. Java is just the language, it's still 100% Cocoa.


6. The few lines of Objective-C that I have seen has no resemblance to any language that I'm familiar with. Considering I will be developing on a Mac and M$ platform for years, is there any major benefit to learning Objective-C?

Objective-C is probably the 'better' language for Cocoa apps, as Java/Cocoa does not support every Cocoa class, you can embed a Safari-style web viewer in an Obj-C app, not in Java/Cocoa yet.

If you are already familiar with Java, it could be the way to go. Also, do not underestimate the amount of 3rd party (and built-in ones like JDBC) libraries available for Java, that are not available for Obj-C.

Cheers

Moray
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: ObJC vs. Java -- NEWBIE
      • From: Scott Anguish <email@hidden>
References: 
 >ObJC vs. Java -- NEWBIE (From: Lotsa Cabo <email@hidden>)

  • Prev by Date: Re: List-etiquette (was: RETRIEVING AN ARRAY ENTRY FROM AN ARRAY)
  • Next by Date: Re: Converting Japanese C- string to NSString
  • Previous by thread: Re: ObJC vs. Java -- NEWBIE
  • Next by thread: Re: ObJC vs. Java -- NEWBIE
  • Index(es):
    • Date
    • Thread