Sie sind auf Seite 1von 4

y y y y

Differences between .Net and Java include Java is from Sun, .Net is from Microsoft Java is a language plus a runtime, .Net is a runtime framework that supports multiple languages, Visual Basic and C# (the .Net language most similar to Java) among them. C# is very similar to Java but a few years younger, and a bit nicer in some respects - it has a slightly simpler syntax for some common constructs. Java is more platform independent, it runs on several operating systems including Windows, Mac and Linux. .Net is primarily for Windows. Although the open source project Mono is developing a multiplatform runtime for .Net, so this is less of an issue than it used to be. .Net has a more integrated development environment, as the IDE, runtime and server all come from Microsoft as a standard package, while Java is based on third-party tool and server providers. It used to be the case that the .Net development environment was clearly superior, but the difference is smaller these days. It can be argued that Java gives more flexibility, as there are more server- and IDE-providers to choose from, at the cost of some extra overhead for the developer to get the different pieces to work together.

Java or .Net

Java for mobile is called J2ME, not j2ee. J2ME ?has long been established as a platform of choice for mobile clients and embedded devices. Since 2002, Microsoft has extended its .NET managed environment to Windows-only mobile devices with the .NET Compact Framework (CF) .Net CF runs only on Windows operating system With the Common Language Runtime (CLR), .NET applications are portable to more than 200 devices that support the Windows CE and Pocket PC-based operating systems. Portable .NET and Mono, gives limited portability of .NET applications on Unix-like operating systems, such as Linux, Mac and FreeBSD. However, there is a plethora of devices that run on non-Windows operating Systems. Symbian, iDen, Brew and vendor-specific operating systems are some of the most widely used platforms on cell phones. Palm OS and RTOS are the most prevalent in lower-level PDAs and embedded devices. Even in higher-level PDAs, where Windows OS has a great market share, there is a growing shift towards Linux Symbian and IBM-based platforms But multitude of mobile platforms has built-in Java support. Developers who use J2ME can write their code without worrying about cross-platform portability. However developers using the J2ME platform run into the standardization problem across various platforms, which can quickly get confusing. Different vendors have sought to extend the capabilities of J2ME by plugging their own proprietary extension packages. Optional packages are not available on all devices. Even the standard J2ME platform itself ?i.e. MIDP ? can be implemented differently by various vendors J2ME beats .NET CF when it comes to portability across a variety of devices, and support for mobile databases and server products. J2ME vendors also offer a wider selection of add-ons and development tools. It is the best platform for mobile solutions on low-end devices, geared towards homogenous environments. However, developing and deploying applications on the J2ME platform can be both challenging and tedious.

So snh Java v .NET??


u i .NET: - D phttri - Phttri n, tools h nr tr c ct t (Visual Studio) khcc a Microsoft (COM, DCOM) ngiaodi td dngtrn Windows. m:

- Lmvi ct tv JAVA: - Ki -C - Ch Nh .NET: - Ch ntrcthi tk ng

it tc cccngngh

tt t. ->nhi ucngngh tltrnlinux). hay ho xu thi nt c ng ng

ngm nh, do lcngngh m

(Vd: Hibernate, Spring ) yt ttrnnhi c i m: u platform khcnhau (nh

ch it tv i hng c a Microsoft. n ng, tuyccthi il ngs tk , specification lm (nnm icci Mono) ngl ptrnhvintheo ng chu ichu ncnl ic ath tb ng .NET tnh c i m Vi t n c a gi i). ptrnhqunhi u ->t oranh khcch ny, ch

- Mngu

- Lmgim ng Microsoft (thngth - Mu h ncanthi

kia so v

psuvoki ntrcbnd yt ttrnh

ih ib kh.

- Tuy c Mono Project cho Linux, nh ngcc application vi unh itr ch ch ti i uhnhc a Microsoft. phttri n (cinycl - Ph Nam JAVA: - Khphttri nh n, nh tlvi c debug. - Tools h - Cv nh tr khngm nhb ng, c. ngtrnh .NET ngi ncho Microsoft

koph ilm

n, mi nphthch ngai lo

ch mchtt tc chob n t c - B om

ch mh nccch mcnhn,

t source code khngt tb ng .NET. tph nm mch y ns r uch ytrnh cl tk i uhnh Windows, tuis s d ng d ng

Nichungtheokinhnghi khic nphttri nm .NET, vvi (c s cphttri

tnhanhvd dng. Ng

i, n uphttri nm t ngd ngl n r tt t, r ngcaoh n.

Enterprise) vc nho t lmchokh n ngho t

ngtrnnhi u platform khcnhauths s ng n nhvkh n ngm

Java.Tuykhphttri nh n, nh ngnh ki ntrcthi

M tng mbi

il

ptrnhgi

is

kothinv h nm

tcngngh

no,

thihat nd ngtheonhuc uc amnh.

u i m .NET:
* Mngu nrrng, trong .NET 2.0, mngu ntchbi tv igiaodi n HTML. * Ch ynhanhh n PHP?! * Visual Studio cth sinhm, ti tki mth igianvi t code. * Cth dng C#, VB ho c Managed C++. * ic p MSSQL, Oracle.

Nh

c i m .NET:

* Koth ch ytrn Linux (m cd cth nh ngthi tngh ngd ngl ns cs xu t?!) * N ukoc Visual Studio thkhvi t code!

ngd ngtmki m, tuynhinv nkocc s ch cch n!

Gi a Java v .NET
u i m Java:
* Dngmngu nm (cth ch ytrn Apache ho c IIS) + Mngu nrrng, mngu ntchbi tv igiaodi n HTML. * Ch ych mh n PHP & ASP.NET nh ngcth c ithi nb ng hardware * Visual Studio cth sinhm, ti tki mth igianvi t code. * D h ckhi bi t HTML, C + Cth dng PHP, Ruby... GUI. * D avo XAMP + Tomcat plugin (d c uhnh). * ic p Oracle. * Ho t ngtrn Linux, cth trn IIS - Windows! * N ukoc Java Studio thxi Eclipse, NetBean ... vi t code!

Nh

c i m .NET:

* T c h ich m, nh ngch pnh n c. * Confignhi u ,d lmbeginet ... n n!

So snh unh
So snh u i m:
Cngngh .NET:

c i mc acngngh Java v .Net

- D phttri n, tools h tr c ct t (Visual Studio) - Phttri ngiaodi nr td dngtrn Windows. - Lmvi ct tv it tc cccngngh khcc a Microsoft (COM, DCOM)

Cngngh JAVA:
- Ki ntrcthi tk r tt t. - C ng ngm nh, do lcngngh m ->nhi ucngngh hay ho xu thi nt c ng ng (Vd: Hibernate, Spring) - Ch yt ttrnnhi u platform khcnhau (nh tltrnlinux).

So snhnh

c i m:

Cngngh .NET:
- Ch ch it tv i hng c a Microsoft. - Mngu n ng, tuyccthi tk , specification lm (nnm icci Mono) - Lmgim ng (thngth i l ptrnh qunhi u ->t oranh ng l ptrnhvin theo ng chu n c a Microsoft ih ib kh. i uhnhc a ngs khcch ny, ch kia so v ichu ncnl ic ath gi i).

- Mu ncanthi psuvoki ntrcbnd Microsoft. - Ph itr ti ncho Microsoft

- Tuy c Mono Project cho Linux, nh ngcc application vi tb ng .NET h unh ch ch yt ttrnh phttri n (cinycl koph ilm tnh c i m Vi tNam )

Cngngh JAVA:
- Khphttri nh n, nh tlvi c debug. - Tools h tr khngm nhb ng, - Cv nh t c ch mh nccch ngi n, mi nphthch ngai lo ch mchtt tc chob n ngtrnh .NET i uhnh Windows, tuis s d ng c.

- B om t source code khngt tb ng .NET. Nichungtheokinhnghi mcnhn, khic nphttri nm tph nm mch y uch ytrnh .NET, vvi cphttri ns r tnhanhvd dng. Ng vc nho t M tng s lmchokh n ngho t cl i, n uphttri nm t ngd ngl n (c Enterprise)

ngtrnnhi u platform khcnhauths s d ng Java.Tuykhphttri nh n, nh ngnh ki ntrcthi tk r tt t, ng n nhvkh n ngm r ngcaoh n.

il ptrnhgi is kothinv h nm tcngngh no, mbi thihat nd ngtheonhuc uc amnh.