There are no implementation-dependent features in Java. Portable: We can carry the bytecode of Java to any platform.
#JAVA TUTORIAL CODE#
The compiled byte code is platform-independent, and we can run it on any machine irrespective of the Operating system.Ħ.
Platform-Independent: Java provides a guarantee that to write code once and run it anywhere(at any platform). Moreover, Java contains a security manager that defines the access levels of Java classes.ĥ. All Java programs run in the virtual machine. Secure: Java is a secure language, as Java does not use explicit pointers. Features like Exception handling and garbage collection make Java robust or strong.Ĥ. Java uses a garbage collector to provide a strong memory management system. Robust: Java always tries to check errors at runtime and compile time. A Java program must have at least one class and object.ģ. In other words, it has some data and behavior. Object-Oriented: Everything in Java is in the form of the object. For example, the use of explicit pointers and operator overloading are not in Java.Ģ. Java eliminates many complex and ambiguous concepts of C++.
Simple: Java is simple because its syntax is simple and easy to understand. Java Micro Edition (ME): We use this edition to develop applications for small devices such as set-top boxes, phones, and appliances, etc. Java Enterprise Edition (EE): We use this edition to create large programs that run on the server and to manage heavy traffic and complex transactions.ģ. Java Standard Editions (SE): We use this edition to create programs for a desktop computer.Ģ. Each Java edition has different capabilities. Java follows the WORA (Write Once, Run Anywhere) principle, and is platform-independent. Java is freely accessible to users, and we can run it on all the platforms. It is designed for the distributed environment of the Internet. Java is the most widely used programming language. In 2009, Oracle Corporation took over Sun Microsystem. Sun Microsystem changed the name to Java in 1995. It was developed by James Gosling at Sun Microsystems in 1991. Java programming language is a high-level, object-oriented, general-purpose, and secure programming language.
Packages are a feature of the Java programming language that help you to organize and structure your classes and their relationships to one another.Keeping you updated with latest technology trends, Join TechVidvan on Telegram Introduction to Java They improve the type safety of your code, making more of your bugs detectable at compile time. Generics are a powerful feature of the Java programming language.
#JAVA TUTORIAL HOW TO#
Numbers and Strings This lesson describes how to use Number and String objects The lesson also shows you how to format data for output. You will learn that all classes are derived from the Object class, and how to modify the methods that a subclass inherits from superclasses. That is, how a subclass can inherit fields and methods from a superclass. This section also describes the way in which you can derive one class from another. Interfaces and Inheritance describes interfaceswhat they are, why you would want to write one, and how to write one. This lesson describes where and how to use annotations in a program effectively. Language Basics describes the traditional features of the language, including variables, arrays, data types, operators, and control flow.Ĭlasses and Objects describes how to write the classes from which objects are created, and how to create and use the objects.Īnnotations are a form of metadata and provide information for the compiler.
#JAVA TUTORIAL FREE#
Feel free to skip this lesson if you are already familiar with object-oriented programming. This lesson ends by showing you how these concepts translate into code. Object-Oriented Programming Concepts teaches you the core concepts behind object-oriented programming: objects, messages, classes, and inheritance. This trail covers the fundamentals of programming in the Java programming language.