Question:
Explain the features of java?
anonymous
1970-01-01 00:00:00 UTC
Explain the features of java?
Ten answers:
anonymous
2010-06-07 03:39:25 UTC
JAVA features are:



Platform Independent

Simple

Object Oriented

Robust

Distributed

Portable

Dynamic

Secure

Multi threaded

Interpreted

Automatic Memory Management

Built-in Networking

Good Performance.



For reference you can refer this site:

http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter01/features.html
?
2016-04-18 22:29:48 UTC
1) Compiled and Interpreter:- has both Compiled and Interpreter Feature Program of java is First Compiled and Then it is must to Interpret it .First of all The Program of java is Compiled then after Compilation it creates Bytes Codes rather than Machine Language.







Then After Bytes Codes are Converted into the Machine Language is Converted into the Machine Language with the help of the Interpreter So For Executing the java Program First of all it is necessary to Compile it then it must be Interpreter







2) Platform Independent:- Java Language is Platform Independent means program of java is Easily transferable because after Compilation of java program bytes code will be created then we have to just transfer the Code of Byte Code to another Computer.







This is not necessary for computers having same Operating System in which the code of the java is Created and Executed After Compilation of the Java Program We easily Convert the Program of the java top the another Computer for Execution.







3) Object-Oriented:- We Know that is purely OOP Language that is all the Code of the java Language is Written into the classes and Objects So For This feature java is Most Popular Language because it also Supports Code Reusability, Maintainability etc.







4) Robust and Secure:- The Code of java is Robust andMeans ot first checks the reliability of the code before Execution When We trying to Convert the Higher data type into the Lower Then it Checks the Demotion of the Code the It Will Warns a User to Not to do this So it is called as Robust







Secure : When We convert the Code from One Machine to Another the First Check the Code either it is Effected by the Virus or not or it Checks the Safety of the Code if code contains the Virus then it will never Executed that code on to the Machine.







5) Distributed:- Java is Distributed Language Means because the program of java is compiled onto one machine can be easily transferred to machine and Executes them on another machine because facility of Bytes Codes So java is Specially designed For Internet Users which uses the Remote Computers For Executing their Programs on local machine after transferring the Programs from Remote Computers or either from the internet.
Hitesh
2016-04-05 16:57:00 UTC
The main features of java language is; it is platform independent more secure language and if support oops concept so it is called object oriented programming language. Some others features of java are



Simple

Object-Oriented

Platform independent

Secured

Robust

Architecture neutral

Portable

Dynamic

Interpreted

High Performance

Multithreaded

Distributed
rambo
2016-02-03 16:47:08 UTC
Java core, J2SE, J2ME,...
Manisha
2015-06-17 00:12:06 UTC
Java is platform independent and secure programming language which can run on any platform and handles garbage collections,Exceptions(Run-time error) in program.



There are many features of java which makes it popular over internet,some of them are as follows:



1) Platform independent:



Java is platform independent unlike C and C++ program which needs to be modified for every machine. But in java, instead of directly creating ".exe" file for the platform it creates "byte code" which is intermediate code. Byte code makes java platform independent.



2) Secure:



Java is much more secure than C and c++ because there are no pointers,because pointers directly access your memory which can be dangerous sometimes.



3) Object-oriented Language:



java is 100% Object-oriented Language. Everything in java is object.String is an object in java.There are in built classes and methods, programmer needs to create object of that class and call the required methods with object name and period(.) operator.



4) Multithreading:



In java, performance of programs is increased because of concept of threads. thread is lightweight process.



For more features and details refer:

http://java.meritcampus.com/t/76/Java---other-features
NIIT Rewari
2014-12-31 23:25:46 UTC
For More http://www.javasafari.com



Features of Java



Object Oriented



Simply stated, object-oriented design is a technique for programming that focuses on the data (objects) and on the interfaces to that object. To make an analogy with carpentry, an object oriented carpenter would be mostly concerned with the chair he was building, and secondarily with the tools used to make it. A non-object-oriented carpenter would think primarily of his tools. The object-oriented facilities of Java are essentially those of C++.



Robust



Java is intended for writing programs that must be reliable in a variety of ways. Java puts a lot of emphasis on early checking for possible problems, later dynamic (run-time) checking, and eliminating situations that are error-prone. The single biggest difference between Java and C/C++ is that Java has a pointer model that eliminates the possibility of overwriting memory and corrupting data.



Java gives you the best. You do not need pointers for everyday constructs like strings and arrays. You have the power of pointers if you need it, for example, for linked lists. And you always have complete safety, because you can never access a bad pointer, make memory allocation errors, or have to protect against memory leaking away.



Secure



Java is intended to be used in networked/distributed environments. Toward that end, a lot of emphasis has been placed on security. Java enables the construction of virus-free, tamper-free systems.



Architecture Neutral



The compiler generates an architecture-neutral object file format-the compiled code is executable on many processors, given the presence of the Java runtime system. The Java compiler does this by generating bytecode instructions which have nothing to do with a particular computer architecture. Rather, they are designed to be both easy to interpret on any machine and easily translated into native machine code on the fly.



Portable



Unlike C and C++, there are no implementation-dependent aspects of the specification. The sizes of the primitive data types are specified, as is the behavior of arithmetic on them.



For example, an int in Java is always a 32-bit integer. In C/C++, int can mean a 16-bit integer, a 32-bit integer, or any other size that the compiler vendor likes. The only restriction is that the int type must have at least as many bytes as a short int and cannot have more bytes than a long int.



Having a fixed size for number types eliminates a major porting headache. Binary data is stored and transmitted in a fixed format, eliminating confusion about byte ordering. Strings are saved in a standard Unicode format.



The libraries that are a part of the system define portable interfaces. For example, there is an abstract Window class and implementations of it for UNIX, Windows, and the Macintosh.



Interpreted



The Java interpreter can execute Java bytecodes directly on any machine to which the interpreter has been ported. Since linking is a more incremental and lightweight process, the development process can be much more rapid and exploratory.



High Performance



While the performance of interpreted bytecodes is usually more than adequate, there are situations where higher performance is required. The bytecodes can be translated on the fly (at run time) into machine code for the particular CPU the application is running on.



Multithreaded



The benefits of multithreading are better interactive responsiveness and real-time behavior. If you have ever tried to do multithreading in another language, you will be pleasantly surprised at how easy it is in Java. Threads in Java also can take advantage of multiprocessor systems if the base operating system does so. On the downside, thread implementations on the major platforms differ widely, and Java makes no effort to be platform independent in this regard. Only the code for calling multithreading remains the same across machines; Java offloads the implementation of multithreading to the underlying operating system or a thread library.Nonetheless, the ease of multithreading is one of the main reasons why Java is such an appealing language for server-side development.



Dynamic



In a number of ways, Java is a more dynamic language than C or C++. It was designed to adapt to an evolving environment. Libraries can freely add new methods and instance variables without any effect on their clients. In Java, finding out run time type information is straightforward.



More At ; http://www.javasafari.com/corejava/corejava-java-basic-why-java.php
anonymous
2014-06-17 23:23:51 UTC
java is a platform independent ,java is object oriented, robust ,distributed,interpreted Multi threaded



Automatic Memory Management ,

Built-in Networking ,

Good Performance.
anonymous
2014-04-12 02:07:00 UTC
There are many features of java which makes it popular. Refer to the link for complete description.

http://www.fixoncloud.com/Home/LoginValidate/OneProblemComplete_Detailed.php?problemid=539
anonymous
2014-02-16 04:59:18 UTC
java make memory management simple.In c like programming,you must take care of memory management very hardly.

java is a pratical object-oriented laguage.java encourage components rather than inherent.inherent is a dangerous action causing problem easily.

java have more fans .java is wildly used.so you can use a lot of code that had been developed by others.
Harry Potter
2010-06-07 03:19:54 UTC
JAVA IS SIMPLE

Java was developed by taking the best points from other programming languages, primarily C and C++. Java therefore utilises algorithms and methodologies that are already proven. Error prone tasks such as pointers and memory management have either been eliminated or are handled by the Java environment automatically rather than by the programmer. Since Java is primarily a derivative of C++ which most programmers are conversant with, it implies that Java has a familiar feel rendering it easy to use.



JAVA IS OBJECT-ORIENTED

Even though Java has the look and feel of C++, it is a wholly independent language which has been designed to be object-oriented from the ground up. In object-oriented programming (OOP), data is treated as objects to which methods are applied. Java's basic execution unit is the class. Advantages of OOP include: reusability of code, extensibility and dynamic applications.



JAVA IS DISTRIBUTED

Commonly used Internet protocols such as HTTP and FTP as well as calls for network access are built into Java. Internet programmers can call on the functions through the supplied libraries and be able to access files on the Internet as easily as writing to a local file system.



JAVA IS INTERPRETED

When Java code is compiled, the compiler outputs the Java Bytecode which is an executable for the Java Virtual Machine. The Java Virtual Machine does not exist physically but is the specification for a hypothetical processor that can run Java code. The bytecode is then run through a Java interpreter on any given platform that has the interpreter ported to it. The interpreter converts the code to the target hardware and executes it.



JAVA IS ROBUST

Java compels the programmer to be thorough. It carries out type checking at both compile and runtime making sure that every data structure has been clearly defined and typed. Java manages memory automatically by using an automatic garbage collector. The garbage collector runs as a low priority thread in the background keeping track of all objects and references to those objects in a Java program. When an object has no more references, the garbage collector tags it for removal and removes the object either when there is an immediate need for more memory or when the demand on processor cycles by the program is low.



JAVA IS SECURE

The Java language has built-in capabilities to ensure that violations of security do not occur. Consider a Java program running on a workstation on a local area network which in turn is connected to the Internet. Being a dynamic and distributed computing environment, the Java program can, at runtime, dynamically bring in the classes it needs to run either from the workstation's hard drive, other computers on the local area network or a computer thousands of miles away somewhere on the Internet. This ability of classes or applets to come from unknown locations and execute automatically on a local computer sounds like every system administrator's nightmare considering that there could be lurking out there on one of the millions of computers on the Internet, some viruses, trojan horses or worms which can invade the local computer system and wreak havoc on it.

Java goes to great lengths to address these security issues by putting in place a very rigorous multilevel system of security:



* First and foremost, at compile time, pointers and memory allocation are removed thereby eliminating the tools that a system breaker could use to gain access to system resources. Memory allocation is deferred until runtime.

* Even though the Java compiler produces only correct Java code, there is still the possibility of the code being tampered with between compilation and runtime. Java guards against this by using the bytecode verifier to check the bytecode for language compliance when the code first enters the interpreter, before it ever even gets the chance to run.

The bytecode verifier ensures that the code does not do any of the following:

o Forge pointers

o Violate access restrictions

o Incorrectly access classes

o Overflow or underflow operand stack

o Use incorrect parameters of bytecode instructions

o Use illegal data conversions

* At runtime, the Java interpreter further ensures that classes loaded do not access the file system except in the manner permitted by the client or the user.



Sun Microsystems will soon be adding yet another dimension to the security of Java. They are currently working on a public-key encryption system to allow Java applications to be stored and transmitted over the Internet in a secure encrypted form.



JAVA IS ARCHITECTURALLY NEUTRAL

The Java compiler compiles source code to a stage which is intermediate between source and native machine code. This intermediate stage is known as the bytecode, which is neutral. The bytecode conforms to the specification of a hypothetical machine called the Java Virtual M


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...