|
|
| ASP Discuss about ASP scripting problems or help others with their ASP scripting issues. |

10-21-2010, 11:08 AM
|
|
Senior Member
|
|
Join Date: Jul 2010
Location: delhi ( india )
Posts: 508
|
|
why is java better than c?
plz reply the my question.............
Thank you.........
|

11-10-2010, 07:52 AM
|
|
Member
|
|
Join Date: Nov 2010
Posts: 85
|
|
|
Java is not necessarily better than C++.
On the plus side...
* Java provides automatic object deletion, using reference counted smart pointers and automatic garbage collection, which reduces or eliminates the hassles of dealing with memory address space fragmentation.
* Java makes it harder to dereference invalid addresses or go out of bounds on an array.
* Java is object code portable, so long as the target system has a compatible JVM.
On the minus side...
* Since Java is interpreted, it tends to run slower than C.
* There can be unexpected delays when the garbage collector runs.
* You do not have control of when the object destructor runs, so some things such as JDBC might not close database connections when you expect.
On the "you decide" side...
* The class libraries for Java and C are dramatically different so, even though the two languages are nearly identical, the two environments do not map well, so knowledge of one does not make one a master of the other.
|

12-06-2010, 06:44 AM
|
|
Member
|
|
Join Date: Nov 2010
Location: Delhi
Posts: 97
|
|
|
HI,
java is better than c and c++ but same as C sharp(C#)
Javva is objected oriented language and c is not a object oriented language.but c++ and C# is object oriented language.
|

04-01-2011, 11:26 AM
|
|
Junior Member
|
|
Join Date: Apr 2011
Posts: 8
|
|
|
frnd
java provides bytecode after compilation and we can run this bytecode in other enviroment.means there only need one time compilation.
on other side C requires every time compilation.
|

04-26-2011, 01:10 PM
|
|
Member
|
|
Join Date: Apr 2011
Posts: 39
|
|
|
Because Java is Object Oriented Programming language. so coding is devided in object or class and its easy to understand. and Java is also plateform independent language.
|

05-12-2011, 07:07 AM
|
|
Junior Member
|
|
Join Date: Apr 2011
Posts: 7
|
|
|
basically java is designed in c.but its much batter than c.because java supports all the features of object orient.it always deal with objects so we can easily make changes.
|

05-29-2011, 04:49 AM
|
|
Senior Member
|
|
Join Date: Apr 2011
Posts: 375
|
|
|
Some projects are done in c and some in java, depending on project requirements we choose c, java or any other language.
|

06-17-2011, 02:01 PM
|
|
Senior Member
|
|
Join Date: May 2011
Posts: 392
|
|
|
the main difference between C and Java is that Java is Object Oriented Language and C is not. Java has an integrated IDE called Net-beans for development purposes.
|

06-17-2011, 03:36 PM
|
 |
Senior Member
|
|
Join Date: Dec 2010
Location: 1 King Street, 1 King Street,Altofts, Wakefieldd, West Yorshire
Posts: 303
|
|
|
I like Java because with this language and we can easily create application based softwares.
|

07-01-2011, 07:11 AM
|
|
Senior Member
|
|
Join Date: Jul 2011
Posts: 111
|
|
|
we can create the c language the console base application whenever JAVA use in console base,window base and web applications ,java follow the oops concepts. easily reuse the code through oops concepts.
|

07-04-2011, 12:56 PM
|
|
Member
|
|
Join Date: Jun 2011
Posts: 80
|
|
|
there are many this which many prove that java is always better then C first java uses an oops concepts secondly the platform independent. and like wise many things are there which makes its performance better.
|

11-26-2011, 09:04 AM
|
|
Senior Member
|
|
Join Date: Nov 2011
Posts: 256
|
|
|
java is object oriented language. this language mostly use web dinging time.
|

11-28-2011, 05:57 AM
|
|
Member
|
|
Join Date: Nov 2011
Posts: 32
|
|
|
Because, Java is Object Oriented Programming language.So coding is divided in object or class and its easy to understand and Java is platform independent language.
|

12-16-2011, 12:41 PM
|
|
Junior Member
|
|
Join Date: Dec 2011
Posts: 18
|
|
|
Java memory is automatically managed; C++ dynamic memory is manually managed.
Java uses references for all objects, and all references to a single object are of equal importance. A Java object will not be destroyed so long as any valid reference exists. C++ uses pointer variables to allow multiple references to the primary definition of an object. If the primary definition is destroyed, any pointers to that object become invalid (and a source of program failures).
Java classes can only have named member functions as methods. C++ allows the class designer to overload operators, meaning to define what the built-in operators mean when applied to objects instead of primitive types. Classes to implement numbers or number-like entities can use + for addition, * for multiplication, etc. So, for a class Complex that implements complex numbers:
... Java: Complex w = z1.add(z2).divide(new Complex(2));
... C++: Complex w = (z1 + z2) / 2;
Java compiles (by design) for a specific machine that does not and likely never will exist in hardware. C++ compiles (by design) to machine code for the host computer and OS. As a result, C++ programs are generally significantly faster for computation tasks.
Java specifies the exact format of each primitive data type, and every implementation produces the same results for all numeric computations. C++ allows compiler implementers to choose the formats (within broad limits) that best implement computations on a particular machines. Valid C++ programs may produce different results on different machines.
Java arrays, strings and collections are bounds-checked. You can't reference memory that hasn't been allocated. C++ array indexes (using [] brackets) are not. The standard collections that allow access with the [] subscript operation are not checked either. Buffer overruns and array over and under-subscripting in C/C++ programs are the source of many, if not most, OS and application security holes.
Java has a fairly complete set of application frameworks for desktop, web, mobile and enterprise application developments. C++ has a much smaller library of functions and classes, with no standard functions for networking, file management (you can't list a directory without nonstandard additions), graphics, serial communications, printing, typography, or even mouse input.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 11:25 AM.
|