UNDER THE GUIDENCE OF
PRINCE MALHOTRA (Manager)
Java is a high-level programming language originally
developed by Sun Microsystems and released in 1995.
Java runs on a va...
#SIMPLE
#OBJECT ORIENTED
#PLATFORM INDEPENDENT
#SECURED
#MULTITHREADED
#ROBUST
Designing programs using classes and
objects..Simplify software development and
maintenance by providing concepts:
#object...
Abstraction is a process of hiding internal details
and showing only functionality to the user..
Ways to achieve abstracti...
It is a mechanism to achieve fully abstraction and
multiple inheritance in java...
interface Printable { void print(); }
i...
class Bike {
void run() { System.out.println(“running ”); }
class Splender extends Bike {
void run() { System.out.println(...
Default Constructor:
class B
{
B(){ System.Out.Println(“Welcome”)}
public Static void main()
{
B obj=new B(); }}
class S
{
Int id; String name; int age;
}
S(int i,String n,int a) { name=n; id=i; age=a; }
S(int i; String n) { name=n; id...
Static property is shared to all objects..
class S {
int rollno; String name;
Static String college=ITS; }
#try
#catch
#finally
#throw
#throws
class A{
public Static void main(String []args) {
int a=integer parse int(args[0]);
int b=integer parse int(args[1]);
int ...
Training on java niit (sahil gupta 9068557926)
Training on java niit (sahil gupta 9068557926)
Training on java niit (sahil gupta 9068557926)
Training on java niit (sahil gupta 9068557926)
Training on java niit (sahil gupta 9068557926)
Training on java niit (sahil gupta 9068557926)
Training on java niit (sahil gupta 9068557926)
Training on java niit (sahil gupta 9068557926)
Upcoming SlideShare
Loading in …5
×

Training on java niit (sahil gupta 9068557926)

1,401 views

Published on

Training PPT on JAVA in NIIT

Published in: Education
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,401
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
73
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Training on java niit (sahil gupta 9068557926)

  1. 1. UNDER THE GUIDENCE OF PRINCE MALHOTRA (Manager)
  2. 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
  3. 3. #SIMPLE #OBJECT ORIENTED #PLATFORM INDEPENDENT #SECURED #MULTITHREADED #ROBUST
  4. 4. Designing programs using classes and objects..Simplify software development and maintenance by providing concepts: #object #class #inheritance #polymorphism #Abstraction #Encapsulation
  5. 5. 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(); }}
  6. 6. 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() ; }}
  7. 7. 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(); }}
  8. 8. Default Constructor: class B { B(){ System.Out.Println(“Welcome”)} public Static void main() { B obj=new B(); }}
  9. 9. class S { Int id; String name; int age; } S(int i,String n,int a) { name=n; id=i; age=a; } S(int i; String n) { name=n; id=i; } void display(){ System.out.println (id+” ” +name” ”+age) ; } public Static void main(String args[]){ S ob1=new S(111, “ keran”); S obj2=new S(231, “bhanu”, 23); obj1.display(); obj2.display(); }}
  10. 10. Static property is shared to all objects.. class S { int rollno; String name; Static String college=ITS; }
  11. 11. #try #catch #finally #throw #throws
  12. 12. class A{ public Static void main(String []args) { int a=integer parse int(args[0]); int b=integer parse int(args[1]); int div=0; try{ div=a/b; System.out.println(div); } catch(Arithmetic Exception e){ printStackTrace(); } System.out.println(“the race is on”); }}

×