BASICS OF CORE AND ADVANCE
JAVA
                   BY:
            PRABHAT KM VERMA
               1673413027
   RAJKIYA ENGINEERING COLLEGE, BANDA
           Topics to be covered:
•   Introduction To java
•   Key features of java
•   Advantages and Disadvantages
•   Introduction to Advanced java
•   Conclusions
                 What is JAVA?
• Java is a programming language and environment
  invented by James Gosling and others in 1994. Java was
  originaly named Oak and was developed as a part of
  the Green project at the Sun Company.
• Java is an object-oriented programming language with
  a built-in application programming interface (API) that
  can handle graphics and user interfaces and that can be
  used to create applications or applets.
                       JAVA
• Java is the same as C and C++. One major difference
  is that Java does not have pointers. However, the
  biggest difference is that you must write object
  oriented code in Java. Procedural pieces of code can
  only be embedded in objects. In the following we
  assume that the reader has some familiarity with a
  programming language.
• When a program is compiled, a byte code is
  produced that can be read and executed by any
  platform that can run Java.
       Key Features of JAVA
• Platform Independence
The concept of Write-once-run-anywhere (known as
the Platform independent) is one of the important
key feature of java language that makes java as the
most powerful language.
The programs written on one platform can run on
any platform provided the platform must have the
JVM.
          Key Features of JAVA
. Object Oriented
To be an Object Oriented language, any language must
follow at least the four characteristics.
1. Inheritence
2. Encapsulation
3. Polymorphism
4. Dynamic Binding
   Advantages and Disadvantages
These are the advantages of JAVA
• Java is easy to learn.
• Java is distributed
• Java is secure.
• Java is robust.
Disadvantages of JAVA
• Slow
• Environment limitations
• Applet limitations imposed due to security model
• Uncertain status of security
   Introduction to Advanced JAVA
• An Advanced Java aimed towards the Developer
  Who Already has Learned the Fundamentals of Java
  Programming.
• In this Advanced Java,content provides Infinite Skills
  builds on the beginners Java, and goes deeper into
  programming topics that help to understand these
  more advanced Java concepts. Designed for the more
  experienced Java developer, should have a good
  working knowledge of the Java programming
  language.
              Basics of servlets
• Servlets provide a component-based, platform-
  independent method for building Web based
  applications, without the performance limitations of
  CGI programs. Servlets have access to the entire
  family of Java APIs, including the JDBC API to access
  enterprise databases.
• Java Servlets often serve the same purpose as
  programs implemented using the Common Gateway
  Interface (CGI). But Servlets offer several advantages
  in comparison with the CGI.
              Introduction to EJB
• EJB is an acronym for enterprise java bean. It is a
  specification provided by Sun Microsystems to develop
  secured, robust and scalable distributed applications.
• To run EJB application, you need an application server (EJB
  Container) such as Jboss, Glassfish, Weblogic, Websphere
  etc. It performs:
• life cycle management,
• security,
• transaction management, and
• object pooling.
• EJB application is deployed on the server, so it is called
  server side component also.
Database Programming With JDBC
• JDBC stands for Java Database Connectivity, which is a
  standard Java API for database-independent connectivity
  between the Java programming language and a wide range
  of databases.
• The JDBC library includes APIs for each of the tasks
  mentioned below that are commonly associated with
  database usage.
• Making a connection to a database.
• Creating SQL or MySQL statements.
• Executing SQL or MySQL queries in the database.
• Viewing & Modifying the resulting records.
•
           Exception Handling
• The Exception Handling in Java is one of the
  powerful mechanism to handle the runtime
  errors so that normal flow of the application can
  be maintained.
• An exception (or exceptional event) is a problem
  that arises during the execution of a program.
  When an Exception occurs the normal flow of the
  program is disrupted and the
  program/Application terminates abnormally,
  which is not recommended, therefore, these
  exceptions are to be handled.
                Conclusion
• Java offers the real possibility that most
  programs can be written in a type-safe
  language. However, for Java to be broadly
  useful, it needs to have more expressive
  power than it does at present.
• It extends Java with a mechanism for
  parametric polymorphism, which allows the
  definition and implementation of generic
  abstractions.
THANK YOU