Sie sind auf Seite 1von 9

Explain the Characteristics of OOP

Object Oriented Programming concepts

 Abstraction
 Objects and classes
 Encapsulation
 Inheritance
 Polymorphism

Difference between procedure-oriented and object oriented programming

Characteristics of Java

 Platform independent
 Secured
 Robust
 Architecture neutral
 Portable
 High performance
 Distributed
 Multi-Threaded
 Dynamic

The Java Environment

 JRE
 JDK
 JVM

Internal Architecture of JVM- Diagram

1.Classloader

2.Class( Method)Area

3.Heap

4.Stack
5.Program Counter Register

6.Native Method Stack

7.Execution Engine

Java Source File Structure – Compilation.

Fundamental Programming Structures in Java

 Structure of a java Program( Example & Syntax)


 Compilation procedure with Block Diagram

Defining classes in Java

 Class definition (importance of class keyword)


 Syntax of class: Definition of member variable and member function
 Example program must
 Creating an object
 Declaring object (Syntax)
 Assigning object reference variable

Constructors

 Definition & syntax


 Types of constructors
 Default Constructor ( Example Program must with output)
 Parameterized constructor ( Example Program must with output)

Methods

 Syntax with description


 Example programs
 Overloading Methods
 Two ways to overload the method in java
 By changing number of arguments
 By changing the data type
 Method Overriding
Access Protection Or Access Specifiers

 Four types of Access protection


 Private (Use of Keyword ,Definition with example program)
 Default (Use of Keyword ,Definition with example program)
 Protected (Use of Keyword ,Definition with example program)
 Public (Use of Keyword ,Definition with example program)

Static members (Non-access modifiers)

Static Blocks (Use of Keyword ,Syntax , Definition with example program)

Static Variables (Use of Keyword , Syntax ,Definition with example program)

Static Methods (Use of Keyword , Syntax ,Definition with example program)

Nested classes (Use of Keyword , Syntax ,Definition with example program)

Java Comments

 Definition
 Types of comments in java
 Single Line Comment (Def, Syntax, with Example Program)
 Multi Line Comment (Def, Syntax, with Example Program)
 Documentation Comment (Def, Syntax, with Example Program)
Data Types in java

 Types of Data types


 Primitive Data types
 Non- Primitive Data types
 Diagram representation
 Example program

Variables

 Definition
 Types of variables
 Local Variable (Def, Syntax, with Example Program)

 Instance Variable (Def, Syntax, with Example Program)


 Static Variable (Def, Syntax, with Example Program)
 Difference Between Instance Variable and Static Variable

Operators : Each Operators classification with Example Program (Must)

 Arithmetic Operators
 Increment and Decrement Operator
 Bitwise Operators
 Relational Operators
 Boolean Operators
 Assignment Operators
 Ternary Operators

Control Flow Or Control Statements Or Selection Statements in java

 If (Definition, Syntax, Flow-diagram with Example Program,


output)

 If-else (Definition, Syntax, Flow-diagram with Example Program,


output)

 Nested-if (Definition, Syntax, Flow-diagram with Example


Program, output)

 If-else-if (Definition, Syntax, Flow-diagram with Example


Program, output)

 Switch case (Definition, Syntax, Flow-diagram with Example


Program, output)

 Jump – Break, continue, return statement (Definition, Syntax,


Flow-diagram with Example Program, output)

Arrays

 Definition
 Description
 Advantages of java Array
 Disadvantages
 Types of Array in java
 One Dimensional Array (Definition, Syntax, with Example
Program, output)
 Multi dimensional Array (Definition, Syntax, with Example
Program, output)

Packages

 Definition & Syntax


 Advantages of java package
 How to create a hierarchy of package with diagram (Multi level
package statement) &
 Finding packages and Classpath
 Example program
 Two ways to create package directory
 Steps to compile the package program
UNIT II

Inheritance

 Definition
 Uses of inheritance
 Terms used in Inheritance ( Class, Sub class (base class),Super class(derived
class),Reusability)
 Types of inheritance
 Single Inheritance (Def, syntax , diagram,program)
 Multilevel Inheritance (Def, syntax , diagram, program)
 Hierarchical inheritance (Def, syntax , diagram, program)
 Syntax with diagrammatic representation (Def, syntax , diagram, program)

Constructors in sub classes (SUPER Keyword)

 Super Keyword (Definition & Example program)


 Super( ) invokes the constructor of the parent class
 Super.variable_name refers to the variable in the parent class
 Super.method_name refers to the method of the parent class

Object class

 Definition
 Different methods of object class with its purpose

Abstract classes and methods

 Definition of abstract class and methods


 Example program

Final methods and classes (FINAL Keyword)

 Final Variable (Def, program(highlight the keyword in the


program,output)
 Final Method (Def, program(highlight the keyword in the
program,output)
 Final class (Def, program(highlight the keyword in the
program,output)

Interfaces

 Definition
 Syntax
 Relationship between classes and interfaces
 Difference between classes and interfaces
 Diagram Representation
 Example program
 How Multiple inheritance is achieved in java by interface
 Advantages of interface in java

Object cloning

 Definition
 Interface used in object cloning
 Syntax : clone() method
 Advantage of object cloning
 Disadvantage
 Example program of clone() method

Inner classes

 Nested Inner class (Definition, Example program, output)


 Method local inner classes (Definition, Example program, output)
 Anonymous inner classes (Definition, Example program, output)
 Static nested classes (Definition, Example program, output)
Strings

 Definition
 Two ways to create String object
 Different String methods(any 10 with description)
 Example program With output

ArrayLists

 Definition
 Important points about ArrayList class
 Declaration syntax
 Constructor of Java ArrayList with description
 Methods of java ArrayList with description
 Example program wih output

Das könnte Ihnen auch gefallen