Looking for a Tutor Near You?

Post Learning Requirement »
x
x

Direction

x

Ask a Question

x

Hire a Tutor

Introduction Java

Loading...

It explains about java introduction

Roshin S / Sharjah

2 years of teaching experience

Qualification: Masters in computer science

Teaches: IELTS, OET, GED, GATE, Computer Science, English, Science, MS Office, Web Development, C Language, C#, Computer, Maths

Contact this Tutor
  1. JAVA It is a programming language and a platform Any hardware or software environment in which a program runs, is known as a platform. Since Java has a runtime environment (JRE) and API, it is called a platform. Applications of java Mobile applications games robotics Web applications Desktop applications Types of applications Standalone applications(Window based applications or desktop applications) A standalone application is an application that runs locally on the device and doesn't require anything else to be functional. All the logic is built into the app, so it doesn't need an internet connection nor any other services installed. Eg: Swing, AWT
  2. Web applications A web application is computer software that utilizes the web browser and technologies to perform tasks over the internet. Eg: Servlet, struts, jsp, hibernate, spring, JSF Mobile applications An application which is created for mobile devices is called a mobile application. Eg: Android, Java ME Enterprice applications An application that is distributed in nature, such as banking applications, etc. is called enterprise application. Eg: banking applications, EJB 1) 2) 3) 4) Simple Object oriented Portable Platform Independent Features of Java 5) Secured 6) Robust 7) Architectural Neutral 8) Interpreted 9) High performance 10)Multi threaded 11) Distributed 12) Dynamic
  3. Simple Java is very easy to learn, and its syntax is simple, clean and easy to understand. Java syntax is based on C++ Java has removed many complicated and rarely-used features, for example, explicit pointers, operator overloading, etc. There is no need to remove unreferenced objects because there is an Automatic Garbage Collection in Java. Object Oriented Basic concepts of OOPs are: Object Class Inheritance Polymorphism A bstraction Encapsulation Platform Independent There are two types of platforms software-based and hardware-based. Java provides a software-based platform.
  4. Software based platform runs on the top of the hardware platform. It has two components l) Runtime Environment 2) API (Application programming Interface) Secured Java is best known for its security. With Java, we can develop virus-free systems. Java is secured because: No explicit pointer Java Programs run inside a virtual machine sandbox Classloader: Classloader in Java is a part of the Java Runtime Environment (JRE) which is used to load Java classes into the Java Virtual Machine dynamically. Bytecode Verifier: It checks the code fragments for illegal code that can violate access rights to objects. Security Manager: It determines what resources a class can access such as reading and writing to the local disk. Robust Strong memory management There is a lack of pointers that avoids security problems.
  5. Architectural Neutral Java is architecture neutral because there are no implementation dependent features. Java occupies 4 bytes of memory for both 32 bit and 64 bit architecture. Portable Java is portable because it facilitates you to carry the Java bytecode to any platform. It doesn't require any implementation. High Performance Java is faster than other traditional interpreted programming languages because Java bytecode is "close" to native code. Distributed Java is distributed because it facilitates users to create distributed applications in Java. RMI and EJB are used for creating distributed applications. Multi threaded 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. Dynamic Java is a dynamic language. It supports the dynamic loading of classes. It means classes are loaded on demand
  6. C++ is platform-dependent. System Programming Supports goto statement Supports multiple inheritance Supports operator overloading Supports pointers supports both call by value and call by reference supports structures and unions supports virtual keyword JAVA Java is platform-independent. Application Programming Doesn't supports goto statement doesn't support multiple inheritance through class. It can be achieved by using interfaces in java doesnot support operator overloading Supports pointers only internally supports only call by value doesnot support structure and umons has no virtual keyword
  7. Java Program Example • class Simple { public static void main(String args[]) { System.out.println("Hello Java"); Save this program in notepad as classname.java Command Prompt (Simple.java) Compile • javac programname.java (javac Simple. java) Run • java programname (java Simple) output : Hello Java