2. Java is a high-level programming language originally
developed by Sun Microsystems and released in 1995.
Java runs on a variety of platforms, such as Windows ,
Mac OS, and the various versions of UNIX.
Used in :
#Desktop Applications
#Web application
#robotics
#Games
#Mobile
8. Designing programs using classes and
objects..Simplify software development and
maintenance by providing concepts:
#object
#class
#inheritance
#polymorphism
#Abstraction
#Encapsulation
9. Abstraction is a process of hiding internal details
and showing only functionality to the user..
Ways to achieve abstraction:
# Abstract class
# Interface
abstract class Bike { abstract void run(); }
class Honda extends Bike {
void run() { System.out.println(“run safely”); }
public static void main(String args[]) {
Bike obj=new Bike();
obj.run();
}}
10. It is a mechanism to achieve fully abstraction and
multiple inheritance in java...
interface Printable { void print(); }
interface Showable { void show(); }
class A implements Printable,Showable {
print void print(){ System.out.println(“hello”); }
print void show(){ System.out.println(“Welcome”); }
public static void main(String [] args)
{
A obj= new A();
obj.print() ; obj.show() ; }}
11.
12. class Bike {
void run() { System.out.println(“running ”); }
class Splender extends Bike {
void run() { System.out.println(“running safely”); }
public Static void main(String []args)
{
Bike obj=new Splender ();
obj.run();
}}