|
|
| 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: 634
|
|
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: 401
|
|
|
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: 391
|
|
|
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: 334
|
|
|
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: 79
|
|
|
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: 17
|
|
|
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.
|

09-16-2012, 02:22 PM
|
|
Member
|
|
Join Date: Sep 2012
Posts: 35
|
|
|
I would say, at this point, it depends on your platform. If you're okay with MS and their products (many people have religious-like zeal against anything the corporation is so much as loosely affiliated with) and plan to run on a windows platform, then I'd say you'd be hard pressed to go wrong with C#. It has VB's renouned forms for increadibly easy interface creation, and really looks a lot like java at the code-level. It is a fully-functional and featured language, and once you get the hang of the Visual Studio IDE, you can have very rapid development quite easily.
On the flip side, java is ported everywhere, will run on any system. Characters are always two bytes to insure that it supports any language's character set. It's been around longer and is more mature. As for the internet, JavaScript is an easy pick-up and a must for almost all client-side activity. Applets and Servlets are at your disposal, as well. They support XML web services, too, but it's more costly licensing for a company (I think, really not very sure).
If you get to know one language, you will have absolutely no problem picking up the other. I'd say it really boils down to platform. If you need stuff to run in something other than windows, stick with java. The open C# compiler (mono?) has been mentioned, but if you're developing a significant portion in *nix, forget C# for now. Language maturity can be worked with, but couple that with compiler maturity issues, too, and it's likely to get hairy.
I should also mention that I've only loosely worked with both languages and am as far from an authority as could be. I've done background research on the two in the last six months, but haven't spent more than a few weeks programming in either. I'm a man of C/C++/Perl (especially that last one).
|

10-06-2012, 03:42 AM
|
|
Senior Member
|
|
Join Date: Dec 2011
Location: Ahmedabad(India)
Posts: 126
|
|
|
I think java is designed in c.but its much batter than c.because java supports all the features of object orient.
|

12-11-2012, 06:43 AM
|
|
Junior Member
|
|
Join Date: Dec 2012
Posts: 10
|
|
|
Java is not complex language as c and c++.
It is totally object oriented language.
In this classes and objects are used.
The main feature of java language is, many mobile based applications are created in the java language.
|
| 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 08:31 PM.
|