Why is Java less efficient than say C++?
445796
Java can be faster than C++. \n\nA JIT (Just in time) compiler must be used.  The reason Java programs start slowly is because they start out being interpreted (the bytecode to machine code) but at the same time the speed is being profiled (tested for bottlenecks and places to perform optimizations), the JIT compiler will use the bytecode and the information from the profiling process and generate machine code (run on the hardware) which results in very fast execution times...  THe price you pay is startup speed...\n\nAll of that being said: if a major goal of a program you are writing is speed then you should use C++ because then you, the programmer, have more direct control of how fast your program will run.
287578
Firstly there's only one java language, which is written with several interfaces, but the java compiler is the same. \nThe syntax in Java is pretty much the same as in C++. The only thing is that Java is fully object oriented while C++ is only partially. Which means that if you write Java code, you have to declare classes, while C++ can run C codes which aren't object orinted, so you can write programs without classes. For VB tutorials try: \nhttp://www.programmingtutorials.com/vbnet.aspx
15961
C was the C++ predecessor. As it's name implies, alot of C remains in C++. Although not actually being more powerful than C, C++ allows the programmer to more easily manage and operate with Objects, using an OOP (Object Oriented Programming) concept.\n\nC++ allows the programmer to create classes, which are somewhat similar to C structures. However, to a class can be assigned methods, functions associated to it, of various prototypes, which can access and operate within the class, somewhat like C functions often operate on a supplied handler pointer.\n\nAlthough it is possible to implement anything  which C++ could implement in C, C++ aids to standarize a way in which objects are created and managed, whereas the C programmer who implements the same system has alot of liberty on how to actually implement the internals, and style among programmers will vary alot on the design choices made.\n\nIn C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.\n\nTo finish this discussion, C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).
414394
Try \n1) Let Us C++\n2) Core Java 2.0 Complete reference\nRead from the very first page and do practical examples page by page. You will defintely able to learn just like me.
83208
Java is an object oriented programming language developed in the 1990s that has a similar syntax to the C++ langauge.\nThe Java language was developed to be able to run across multiple platforms using the Java virtual machine.  The Java langauge is free to use and develop with.  It is also "alive" in the respect that 'Sun' (the company the owns it [not quite the right phrasing])  is constantly developing and making improvments, producing new versions of the language, the current version is verion 1.5
10157
Better is always a matter of what you use it for. I like Java because it is platform independent. You can run it on Linux, Mac, or Windows as long as you have the Java Runtime Environment (a free download) installed. Plus, I have a natural aversion to many things Microsoft because of their anti-competitive business practices and their habit of ignoring standards.\n\nThat said, to be the man, you gotta beat the man, and right now, Bill Gates is the man. It's advantageous to learn whatever BS Microsoft puts out there, since you can bet lots of people will adopt it because they know Microsoft is going to integrate it into everything possible. So from an employability standpoint, C# may be the better choice.\n\nAlthough my experience with C# is limited, I don't see much difference in terms of the language constructs. Both are object oriented from the get-go, and provide a nice set of base classes to get you up and running.\n\nHope this helps.
222349
C++ is an object-oriented programming (OOP) language that is viewed by many as the best language for creating large-scale applications. C++ is a superset of the C language. A related programming language, Java, is based on C++ but optimized for the distribution of program objects in a network such as the Internet. Java is somewhat simpler and easier to learn than C++ and has characteristics that give it other advantages over C++. However, both languages require a considerable amount of study.
587233
More details pls.\nGo to the source:\nhttp://www.java.com/en
1098118
I've seen it called both Java 5 and J2SE 1.5.  I guess they can't make up their minds.
567969
Yes; java is hot right now and could be a great benefit to you.  It teaches you a lot about low level lanquages and the computer interface to the hardware.  At times though I question the efficency of the language.  It takes a lot of time compared to some tools.
959426
Writing is quicker than pointing and clicking.\nAlso a command line interface is easier to use from a script.
764217
There has always been debate over the usefulness and performance of assembly language relative to high-level languages, though this gets less attention today. Assembly language has specific niche uses where it is important; see below. But in general, modern optimizing compilers are claimed to render high-level languages into code that runs at least as fast as hand-written assembly, despite some counter-examples that can be created. The complexity of modern processors makes effective hand-optimization increasingly difficult. Moreover, and to the dismay of efficiency lovers, increasing processor performance has meant that most CPUs sit idle most of the time, with delays caused by predictable bottlenecks such as I/O operations and paging. This has made raw code execution speed a non-issue for most programmers (hence the increasing use of interpreted languages without apparent performance impact).\n\nThere are really only a handful of situations where today's expert practitioners would choose assembly language:\n\nWhen a stand-alone binary executable is required, i.e. one that must execute without recourse to the run-time components or libraries associated with a high-level language; this is perhaps the most common situation \nWhen interacting directly with the hardware, e.g. in a device driver, or when using processor-specific instructions not exploited by or available to the compiler \nWhen extreme optimization is required, e.g. in an inner loop in a processor-intensive algorithm \nWhen a system with severe resource constraints (e.g. an embedded system) must be hand-coded to maximize the use of limited resources; but this is becoming less common as processor price/performance improves \nWhen no high-level language exists, e.g. on a new or specialized processor \nFew programmers today need to use assembly language on a day-to-day basis. For performance-critical applications, a low-level language like C would generally be chosen. It is now very difficult to write a C program which is less efficient than an assembly language program. However, a strong case can be made that any serious programmer should learn at least one assembly language – to understand the fine structure of how computers function, to anticipate how application design choices can improve generated code, and to appreciate all the work high-level languages save.\n\n\n[edit] Typical applications\nHand-coded assembly language is typically used in a system's BIOS. This low-level code is used, among other things, to initialize and test the system hardware prior to booting the OS, and is stored in ROM. Once a certain level of hardware initialization has taken place, execution transfers to other code, typically written in higher level languages; but the code running immediately after power is applied is usually written in assembly language. The same is true of most boot loaders.\n\nMany compilers render high-level languages into assembly first before fully compiling, allowing the assembly code to be viewed for debugging and optimization purposes. Relatively low-level languages, such as C, often provide special syntax to embed assembly language directly in the source code. Programs using such facilities, such as the Linux kernel, can then construct abstractions utilizing different assembly language on each hardware platform. The system's portable code can then utilize these processor-specific components through a uniform interface.\n\nAssembly language is also valuable in reverse engineering, since many programs are distributed only in machine code form, and machine code is usually easy to translate into assembly language and carefully examine in this form, but very difficult to translate into a higher-level language. Tools such as the Interactive Disassembler make extensive use of disassembly for such a purpose.
992635
yes its a purely object oriented. Its because pretty much every variable youuse is and object. Even types like String and Integer. There are also many objects already written in java, that java provides, that you can use to create something or inheret it into your own classes and objects. \n\nThere are however some basic types like int (not Integer like above) and double, and boolean.  But majerity of the language is object oriented and almost every object is a subclass of another class. Thats why you end up having to do things like System.out.println. Meaning println is dependent on out, which intern dependent on System. So when writting something you end up having many dependecies and some lines can edn up being quite long.\n\nAnyways, yes, for majority - java is object oriented. Not completely since it still has basic types like int and double.
69889
Java or C.\nChoose Java, because it's similar to C, and easier to learn, due to Java's consistent handling of storage locations by reference, and automatic handling of memory management.  As a bonus, you can run your program on any system that supports Java, and embed your program as an applet accessible from anywhere with Internet access. Should you require more efficiency, you can relatively easily translate your program in Java, to a program in C, after you learn and know C.\n\nI'm limiting my answer based on the assumption that you personally want to *learn* a programming language.  You would likely expend fewer resources by simply giving your problem data to a programmer for hire.  If your script conversion doesn't require capabilities like grammar recognition, any programmer with a clue can code a basic utility in minutes.\n\nNote to programmers: I base this learning approach on a graduated, learn as you need to know, rationale, that leaves open a transition path to maximum product efficiency (C or C/assembly), or to high efficiency with a graphical interface (C or C++).  I acknowledge that less ubiquitous higher level languages exist that are better suited for specific types of text processing.
654587
C++ is a popular language used to do alot of difficult stuff. You can use it to program for different operating systems.\n\nJava is more of an open language, which will allow you to program for different platformas but more for a web based enviroment. few desktop applications are written with Java.\n\nVisual basic is also a great langauge. It's not as powerful as c++, but it's easy to build application with. It is used for rapid application development. Visual basics IDE's were written using c++ as well as the core of the windows operating system. Some of the smaller programs in windows are written in Visual basic (VB). dont waste your time with VB unless you are a beginner it spoils you rotten its so basic. Start with VB.Net. programs written with visual basic only work on windows. \n\nif by basic you mean Basic and not visual basic, then all i can say is: Basic is basic , i don't know of anyone using basic. I think basic was succeeded by other better languages like C. basic stands for something but i can't remember . \n\nPascal, I think is like C but I am not familiar with it. I think it was succeeded by Delphi.\n\nAnd yes unix is a very powerful operating system used on some servers.
52198
Assuming that you don't know C/C++, spending 5 hrs a day for around a month makes you confident in using constructs of core Java, ie., basic Java and some of frequently used APIs (programs that already developed and installed when you install JAVA) of J2SE(Java 2 Standard Edition). And, ofcourse, the duration varies depending on individual, faster you get hold on concepts, shorter time it takes. Then, depending on whether you want to be a GUI programmer (eg., Swings) or Server side prgorammer (J2EE, Java 2 Enterprise Edition) or embedded (J2ME), each domain being mostly independent of each other, that time varies.\n\nThe question is a difficult one to answer when you say just "Java". Hope the above answer gives you some idea of what it is like.\n\nhttp://java.sun.com/developer/onlineTraining/ - Tutorials link
173498
Choose one of the three. Each has its own pros and cons.\n\nC++, Java, C#