Article

Features of Java

Topic: Coach Training and CertificationPublished September 8, 2017

Legacy signals

Legacy popularity: 678 legacy views

Java Programming Tutorial is a widely used robust technology. Let's start learning Java from basic questions like what is Java tutorial, Core Java, where it is used, what type of applications are created in Java, why use java and Java platforms. There is given many features of java. They are also known as java buzzwords. The Java Features given below are simple and easy to understand.rn1. Simplern2. Object-Orientedrn3. Portablern4. Platform independentrn5. Securedrn6. Robustrn7. Architecture neutralrn8. Dynamicrn9. Interpretedrn10. High Performancern11. Multithreadedrn12. DistributedrnSimplernAccording to Sun, Java language is simple because: syntax is based on C++ (so easier for programmers to learn it after C++). removed many confusing and/or rarely-used features e.g., explicit pointers, operator overloading etc. No need to remove unreferenced objects because there is Automatic Garbage Collection in java.rnBest core java training in Bangalore Object-orientedrnObject-oriented means we organize our software as a combination of different types of objects that incorporates both data and behaviour.rnObject-oriented programming(OOPs) is a methodology that simplify software development and maintenance by providing some rules.rnBasic concepts of OOPs are:rn1. Objectrn2. Classrn3. Inheritancern4. Polymorphismrn5. Abstractionrn6. EncapsulationrnPlatform Independent A platform is the hardware or software environment in which a program runs.rnThere are two types of platforms software-based and hardware-based. Java provides software-based platform.rnThe Java platform differs from most other platforms in the sense that it is a software-based platform that runs on the top of other hardware-based platforms. It has two components:rn1. Runtime Environmentrn2. API(Application Programming Interface)rnJava code can be run on multiple platforms e.g. Windows, Linux, Sun Solaris, Mac/OS etc. Java code is compiled by the compiler and converted into bytecode. This bytecode is a platform-independent code because it can be run on multiple platforms i.e. Write Once and Run Anywhere(WORA). SecuredrnJava is secured because:rno No explicit pointerrno Java Programs run inside virtual machine sandboxrno Classloader: adds security by separating the package for the classes of the local file system from those that are imported from network sources.rno Bytecode Verifier: checks the code fragments for illegal code that can violate access right to objects.rno Security Manager: determines what resources a class can access such as reading and writing to the local disk.rnThese security are provided by java language. Some security can also be provided by application developer through SSL, JAAS, Cryptography etc. Advanced Java Training in Bangalore RobustrnRobust simply means strong. Java uses strong memory management. There are lack of pointers that avoids security problem. There is automatic garbage collection in java. There is exception handling and type checking mechanism in java. All these points makes java robust. Architecture-neutralrnThere is no implementation dependent features e.g. size of primitive types is fixed.rnIn C programming, int data type occupies 2 bytes of memory for 32-bit architecture and 4 bytes of memory for 64-bit architecture. But in java, it occupies 4 bytes of memory for both 32 and 64 bit architectures. PortablernWe may carry the java bytecode to any platform. High-performancernJava is faster than traditional interpretation since byte code is "close" to native code still somewhat slower than a compiled language (e.g., C++) DistributedrnWe can create distributed applications in java. RMI and EJB are used for creating distributed applications. We may access files by calling the methods from any machine on the internet. Multi-threadedrnA thread is like a separate program, executing concurrently. We can write Java programs that deal with many tasks at once by defining multiple threads. The main advantage of multi-threading is that it doesn't occupy memory for each thread. It shares a common memory area. Threads are important for multi-media, Web applications etc.rnDifference between JDK, JRE and JVMrn1. Brief summary of JVMrn2. Java Runtime Environment (JRE)rn3. Java Development Kit (JDK)rnUnderstanding the difference between JDK, JRE and JVM is important in Java. We are having brief overview of JVM here.rnIf you want to get the detailed knowledge of Java Virtual Machine, move to the next page. Firstly, let's see the basic differences between the JDK, JRE and JVM.rnJVMrnJVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed.rnJVMs are available for many hardware and software platforms. JVM, JRE and JDK are platform dependent because configuration of each OS differs. But, Java is platform independent.rnThe JVM performs following main tasks:rno Loads coderno Verifies coderno Executes coderno Provides runtime environmentrnJRErnJRE is an acronym for Java Runtime Environment.It is used to provide runtime environment.It is the implementation of JVM. It physically exists. It contains set of libraries + other files that JVM uses at runtime.rnImplementation of JVMs are also actively released by other companies besides Sun Micro Systems.rnJVM (Java Virtual Machine)rnJVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed.rnJVMs are available for many hardware and software platforms (i.e. JVM is platform dependent).rnWhat is JVMrnIt is:rn1. A specification where working of Java Virtual Machine is specified. But implementation provider is independent to choose the algorithm. Its implementation has been provided by Sun and other companies.rn2. An implementation Its implementation is known as JRE (Java Runtime Environment).rn3. Runtime Instance Whenever you write java command on the command prompt to run the java class, an instance of JVM is created.rnWhat it doesrnThe JVM performs following operation:rno Loads coderno Verifies coderno Executes coderno Provides runtime environmentrnJVM provides definitions for the:rno Memory arearno Class file formatrno Register setrno Garbage-collected heaprno Fatal error reporting etc.

Further reading

Further Reading

4 total

Article

How Coaching Turns Knowledge Into Change Walk into any bookstore or scroll through your favorite podcast feed, and you’ll see the same thing: endless tips, strategies, and “life hacks” promising transformation.rnWe devour them. We highlight paragraphs. We even try to practice what we’ve learned. But somehow, the big shifts never stick. Weeks later, the old patterns creep back in.rnSo why does it happen? Why do so many smart, motivated people keep getting stuck — eve

October 6, 2025

Article

grinding and cutting a variety of materials across numerous industries. Understanding their construction, types and safety precautions is mandatory for anyone working with these powerful tools. This article will explore the basics of abrasive wheels, offering insights into their components, maintenance and legal requirements to ensure both effective and safe usage. Exploring the Basics of Abrasive Wheels Abrasive wheels are critical tools in various industrial applications, f

March 6, 2025

Article

The internet we use daily, known as the surface web, represents only a fraction of the entire digital landscape. Beneath this visible layer lies the deep web and the dark web, where anonymity, privacy, and unrestricted information exchange thrive. Among the most well-known directories for accessing dark web content is the Uncensored Hidden Wiki . This article delves into the history, significance, risks, and access methods of the Uncensored Hidden Wiki, providing a comprehens

January 31, 2025

Article

If you're searching for exceptional piano classes near you, there are several excellent options in Toronto to consider. For those eager to learn the piano, finding a school or instructor that offers expert guidance, comprehensive lesson plans, and a supportive environment is key. Catering to both beginners and advanced players, many schools in the Toronto area provide tailored lessons to help students achieve their musical aspirations. What to Look for in Piano Lessons When

January 1, 2025