Skip to content
Computer ApplicationsICSE Class 9 · Chapter 1

Introduction to Object Oriented Programming Concepts ICSE Class 9

Updated 15 October 2026 · Fact-checked

Object oriented programming builds programs from objects that combine data and the methods that work on it. ICSE Class 9 tests how it differs from procedure oriented programming, its four principles (abstraction, encapsulation, inheritance, polymorphism) with real-life examples, Java tools and IDEs, applets and applications, compilation to bytecode, the JVM and Java's features.

What Introduction to Object Oriented Programming Concepts is about

Java is the language of ICSE Computer Applications, and it is built around objects. Before writing programs you need the ideas behind it: why programs are organised as objects rather than as a list of steps, how Java source code becomes something a computer can run on any operating system, and what tools you will use.

The CISCE syllabus asks for: (i) the principles of object oriented programming, the difference between procedure oriented and object oriented programming, and all four principles defined and explained with real-life examples; (ii) open source software, the IDE, versions of Java, and hardware and software requirements, with OpenJDK and IDEs such as DrJava, NetBeans, MyEclipse and BlueJ; (iii) Java applets and applications, the compilation process, source code, bytecode, object code and the JVM, the features of Java, and real-time applications of Java as examples only.

In answers, define each term in one sentence and then give a real-life or Java example; marks are lost when a principle is defined but not illustrated.

Weightage: CISCE publishes no chapter weightage and no question-paper layout for ICSE Class 9 Computer Applications. Class IX is examined by your school: one 100-mark theory paper of 2 hours, plus 100 marks of internal assessment (at least 15 programming assignments and a written project on ethical computing). This is topic 1 of the 2028 syllabus.Source: CISCE ICSE 2028 Computer Applications syllabus, Class IX

Key concepts

Procedure oriented vs object oriented programming

Procedure oriented programming (POP) divides a program into functions (procedures) that act on data. Data usually moves freely between functions and is often shared globally. Examples: C, BASIC, FORTRAN.
Object oriented programming (OOP) divides a program into objects. Each object holds its own data (attributes) together with the methods (functions) that work on that data. Examples: Java, C++, Python.

Differences:
1. Focus: POP focuses on procedures (how to do it); OOP focuses on data and objects (what is involved).
2. Data security: in POP, data is exposed to all functions; in OOP, data is hidden inside objects and accessed through methods.
3. Approach: POP follows a top-down approach; OOP follows a bottom-up approach (build objects, then combine them).
4. Reuse and extension: OOP supports reuse through inheritance and easy addition of new objects; POP programs are harder to extend.
5. Real-world modelling: OOP models real-world entities (a student, a bank account) directly.

Real-life view: a POP recipe lists steps (boil, add, stir); an OOP kitchen has objects (a cooker, a mixer), each with its own controls and data, that you ask to do jobs.

Worked example

(2 marks) State two differences between procedure oriented and object oriented programming.

Try it first, then show the solutionSolution
  1. POP divides a program into functions; OOP divides it into objects that combine data and methods - 1 mark.
  2. In POP data moves freely between functions; in OOP data is hidden inside objects (more secure) - 1 mark.

Answer: (1) POP breaks a program into procedures that act on data, while OOP breaks it into objects that bundle data with the methods that use it. (2) In POP data is shared openly among functions; in OOP data is hidden inside objects and reached only through their methods, so it is more secure.

The four principles of OOP

1. Data abstraction: showing only the essential features of an object and hiding the background details. Real life: you drive a car using the steering, accelerator and brake without knowing how the engine works. Java: you call System.out.println() without knowing how it sends text to the screen.

2. Encapsulation: wrapping data and the methods that operate on it into a single unit (a class), and protecting the data from direct outside access. Real life: a medicine capsule holds its contents inside one shell; an ATM keeps the cash inside and lets you reach it only through its keypad. Java: a class Account keeps balance private and changes it only through deposit() and withdraw().

3. Inheritance: the process by which one class acquires the properties and methods of another. The existing class is the base (parent or super) class; the new class is the derived (child or sub) class. It promotes reuse. Real life: a child inherits features from parents; a smartphone inherits all the features of a phone and adds more. Java: class Car extends Vehicle.

4. Polymorphism: the ability of one thing (a name or a method) to take many forms, so the same message gives different results in different situations. Real life: a person is a student at school, a customer in a shop and a son or daughter at home; the word 'draw' means one thing to an artist and another to a bank. Java: one method name area() can calculate the area of a circle or a rectangle depending on the arguments.

Key distinction: abstraction is about what is shown (essentials only); encapsulation is about how data is packed and protected.

Worked example

(2 marks) Identify the OOP principle in each: (i) a TV remote lets you change channels without knowing the circuitry; (ii) a 'play' button plays music in one app and a video in another.

Try it first, then show the solutionSolution
  1. (i) Only essential features shown, details hidden: data abstraction - 1 mark.
  2. (ii) The same action produces different behaviour: polymorphism - 1 mark.

Answer: (i) Data abstraction. (ii) Polymorphism.

Open source, IDEs, Java versions and requirements

Open source software: software whose source code is freely available to use, study, change and share, usually under a licence that allows this. Examples: OpenJDK, Linux, BlueJ, NetBeans.

JDK (Java Development Kit): the package of tools needed to write and run Java programs: the compiler (javac), the Java Virtual Machine and runtime (java) and standard class libraries. OpenJDK is the free, open source implementation of Java SE.

IDE (Integrated Development Environment): a single program that combines an editor, a compiler, a debugger and tools to run programs, making development easier. Examples named in the syllabus: BlueJ (designed for learning, used in schools), DrJava, NetBeans and MyEclipse.

Versions of Java: Java was developed at Sun Microsystems by a team led by James Gosling and released in 1996 (it was first called Oak). Sun was later taken over by Oracle. New versions are released regularly; some are long-term support (LTS) versions, such as Java 8, 11, 17 and 21, which schools often use.

Requirements:

  • Hardware: a desktop or laptop computer with a modern processor, enough memory (RAM) and free disk space to run the JDK and an IDE; keyboard, mouse and monitor.
  • Software: an operating system (Windows, Linux or macOS), a JDK (such as OpenJDK) and an IDE such as BlueJ.

Worked example

(2 marks) What is an IDE? Name two IDEs used for Java.

Try it first, then show the solutionSolution
  1. IDE: one software package combining an editor, compiler, debugger and run tools for writing programs - 1 mark.
  2. Examples: BlueJ, NetBeans, DrJava, MyEclipse (any two) - 1 mark.

Answer: An Integrated Development Environment is a single application that provides an editor, a compiler, a debugger and tools to run programs in one place. BlueJ and NetBeans are two IDEs used for Java.

Java applets and Java applications

Java application: a stand-alone program that runs on a computer under the control of the JVM, like any other program. It starts from the main() method. Examples: a billing program, a student grading system, a desktop game. All ICSE programs are applications.

Java applet: a small Java program designed to be downloaded over the internet and run inside a web page through a Java-enabled browser or an applet viewer. It has no main() method and runs with restricted permissions for safety. Example: an interactive animation or a small calculator embedded in a web page.

Applets are now obsolete: modern browsers no longer support the plug-in they need, and recent versions of Java have deprecated the applet API. They are studied for their historical role.

Differences:
1. An application runs independently; an applet runs inside a browser or applet viewer.
2. An application begins with main(); an applet has no main().
3. An application has full access to the computer's resources (files); an applet is restricted for security.

Worked example

(2 marks) Distinguish between a Java application and a Java applet.

Try it first, then show the solutionSolution
  1. Application: stand-alone, runs on the JVM, starts from main() - 1 mark.
  2. Applet: small program run inside a web browser or applet viewer, has no main(), restricted access - 1 mark.

Answer: A Java application is a stand-alone program that runs directly on the JVM and starts execution from main(). A Java applet is a small program embedded in a web page and run inside a browser or applet viewer; it has no main() method and restricted access to the computer.

Compilation process: source code, bytecode, object code and JVM

Source code: the program written by the programmer in Java, saved in a file with the extension .java (e.g. Welcome.java).

Step 1: Compilation. The Java compiler (javac) checks the source code for syntax errors and translates it into bytecode, saved in a .class file (Welcome.class).

Bytecode: an intermediate, machine-independent code that is not specific to any processor. It can be carried to any computer that has a JVM.

Step 2: Execution. The Java Virtual Machine (JVM) loads the bytecode, verifies it for safety and converts it into the machine code of that particular computer using an interpreter and a just-in-time (JIT) compiler.

Object code (machine code): the binary instructions that the processor actually executes.

JVM: a software 'virtual' machine that runs Java bytecode. Every operating system has its own JVM, but all of them understand the same bytecode. This is why Java is platform independent: 'write once, run anywhere'.

Flow: Welcome.java (source) → javac → Welcome.class (bytecode) → JVM → machine (object) code → output.

Worked example

(2 marks) What is bytecode? Why is it important?

Try it first, then show the solutionSolution
  1. Bytecode: intermediate, machine-independent code produced by the Java compiler, stored in a .class file - 1 mark.
  2. Importance: any computer with a JVM can run it, making Java platform independent - 1 mark.

Answer: Bytecode is the intermediate, machine-independent code produced when the Java compiler translates a .java file; it is stored in a .class file. Because any computer with a JVM can run the same bytecode, Java programs are platform independent.

Features of Java and real-time applications

Features of Java:
1. Simple: syntax similar to C and C++ but without difficult features such as explicit pointers; memory is managed automatically.
2. Object oriented: everything is organised as classes and objects.
3. Platform independent and portable: bytecode runs on any system with a JVM.
4. Robust: strong type checking, automatic memory management (garbage collection) and exception handling make programs reliable.
5. Secure: no explicit pointers, bytecode is verified before running, and programs run in a controlled environment.
6. Multithreaded: a program can do several tasks at once.
7. High performance: the JIT compiler converts frequently used bytecode to fast machine code.
8. Distributed: designed for networks and the internet.

Real-time applications (examples for exposure): mobile apps (Android apps are commonly written in Java), desktop GUI applications (Acrobat Reader is the syllabus example), web-based applications (online banking, e-commerce sites), games, robotic and health-care applications, education applications (online quizzes, student grading systems), chatbots for customer service and messengers, and virtual assistants.

A first program (as run in this study guide with OpenJDK 17):
// My first Java program
class Welcome
{
public static void main(String args[])
{
System.out.println("Welcome to Java");
System.out.println("Java is object oriented");
}
}
Output:
Welcome to Java
Java is object oriented

Worked example

(2 marks) Explain why Java is called (i) robust and (ii) secure.

Try it first, then show the solutionSolution
  1. (i) Robust: strong type checking, garbage collection and exception handling prevent many crashes - 1 mark.
  2. (ii) Secure: no explicit pointers and bytecode is verified by the JVM before it runs - 1 mark.

Answer: (i) Java is robust because strict type checking, automatic garbage collection and exception handling catch errors and prevent many crashes. (ii) It is secure because it has no explicit pointers and the JVM verifies bytecode before running it in a controlled environment.

Introduction to Object Oriented Programming Concepts in real life

Each concept, met in an everyday situation. Read the situation, answer the question in your own words, then compare with the model answer. The one-line hook is what to remember.

Encapsulation

Suppose you use an ATM: you insert a card, enter a PIN and choose an amount, but you can never reach into the machine to take or count the cash yourself.

Which OOP principle does the ATM model, and how?

Try it first, then show the solutionSolution
  1. The cash (data) is kept inside the machine.
  2. You reach it only through the keypad options (methods).
  3. Data and the operations on it are wrapped in one protected unit.

Answer: Encapsulation: the ATM wraps the cash (data) and the operations on it (withdraw, check balance) into one unit and allows access only through its controlled interface.

Memory hook: Cash inside, buttons outside.

Platform independence

Imagine your teacher writes a Java quiz program on a Windows laptop and emails the .class file to a student using Linux and another using macOS.

Will it run on both, and why?

Try it first, then show the solutionSolution
  1. The .class file contains bytecode, not machine code for Windows.
  2. Each computer has its own JVM for its operating system.
  3. Each JVM converts the same bytecode into its own machine code.

Answer: Yes. The bytecode in the .class file is machine independent, and the JVM on Linux and macOS each translate it for their own system: write once, run anywhere.

Memory hook: Same bytecode, different JVMs.

Inheritance

Suppose a phone company designs a smartphone by taking everything a basic phone can do (calls, SMS, contacts) and adding a camera, internet and apps.

Which OOP principle is this? Name the base and derived classes.

Try it first, then show the solutionSolution
  1. The smartphone acquires all features of the basic phone.
  2. It adds new features of its own.
  3. Phone is the base class; Smartphone is the derived class.

Answer: Inheritance: Smartphone (derived class) inherits the features of Phone (base class) and adds its own, so existing work is reused.

Memory hook: Take what exists, add what is new.

Topics in this chapter

Introduction to Object Oriented Programming Concepts: syntax and key facts

Four principles
Abstraction (essentials shown); Encapsulation (data + methods wrapped); Inheritance (acquire from parent); Polymorphism (one name, many forms)
Always add a real-life example.
Compilation chain
  1. 1.Source code (.java)
  2. 2.javac
  3. 3.bytecode (.class)
  4. 4.JVM
  5. 5.object (machine) code
Platform independence comes from bytecode + JVM.
Application vs applet
Application: stand-alone, main(), full access; applet: in browser, no main(), restricted
Applets are obsolete today.
Tools
JDK (javac, java, libraries); OpenJDK (open source); IDEs: BlueJ, DrJava, NetBeans, MyEclipse
IDE = editor + compiler + debugger.

How the school exam asks Introduction to Object Oriented Programming Concepts

The question patterns to expect, and the method that works for each.

Question typeHow it is askedMethod
MCQ and assertion-reason (1 mark)Extension of source and bytecode files; what converts bytecode to machine code; identify the principle in a situation..java and .class; JVM; match keywords: hiding → abstraction, wrapping → encapsulation, acquiring → inheritance, many forms → polymorphism.
Short answer (2 marks)Define a principle with an example; POP vs OOP; application vs applet; bytecode; features of Java.One-sentence definition plus example or reason.
Program (15 marks)Programs in later chapters all start from the class and main() structure introduced here.Correct class name, main() header, braces and output statements.

Tricks to remember Introduction to Object Oriented Programming Concepts

Short memory aids. Say each one aloud once, then use it on a question the same day.

  • A PIE

    Abstraction, Polymorphism, Inheritance, Encapsulation: the four principles.

    Use it when: Listing the principles.

  • S-B-J-M

    Source → Bytecode → JVM → Machine code ('Students Bring Juice in the Morning').

    Use it when: Compilation process.

  • Capsule and car

    Encapsulation = capsule (wrapped inside); abstraction = car controls (essentials only).

    Use it when: Telling the two apart.

Introduction to Object Oriented Programming Concepts: exam-level solved questions

Ordered from exam level to HOTS. Cover the solution, write your own, then compare step by step.

Example 1: File extension · 1 mark · MCQExam level

The Java compiler converts Welcome.java into:
(a) Welcome.exe
(b) Welcome.class
(c) Welcome.obj
(d) Welcome.byte

Try it first, then show the solutionSolution
  1. javac produces bytecode.
  2. Bytecode is stored in a .class file.

Answer: (b) Welcome.class

Example 2: Assertion and reason: platform independence · 1 mark · Assertion-reasonHarder exam level

Assertion (A): A Java program compiled on Windows can run on Linux without recompiling.
Reason (R): The Java compiler produces machine code for every operating system.
(a) Both A and R are true and R is the correct explanation of A
(b) Both A and R are true but R is not the correct explanation of A
(c) A is true but R is false
(d) A is false but R is true

Try it first, then show the solutionSolution
  1. A is true: the .class file runs on any JVM.
  2. R is false: the compiler produces bytecode, not machine code; the JVM produces machine code.

Answer: (c) A is true but R is false

Example 3: Identify the principle · 1 mark · MCQHarder exam level

Name the OOP principle shown: a Ladies' Special train is a Train with extra rules, so it has everything a train has plus a 'women only' feature.
(a) Encapsulation
(b) Inheritance
(c) Polymorphism
(d) Data abstraction

Try it first, then show the solutionSolution
  1. It acquires all features of Train and adds its own.

Answer: (b) Inheritance (LadiesSpecial is derived from Train).

Example 4: Output of print and println · 2 marks · Short answerHOTS / competency

Give the output:
System.out.print("OOP ");
System.out.print("in ");
System.out.println("Java");
System.out.println("BlueJ");
System.out.println("Sum: " + 4 + 5);
System.out.println("Sum: " + (4 + 5));
System.out.println(4 + 5 + " is the sum");

Try it first, then show the solutionSolution
  1. print() keeps the cursor on the same line; println() moves to the next line after printing: 'OOP in Java' then 'BlueJ'.
  2. "Sum: " + 4 makes a string, then + 5 joins '5': 'Sum: 45'; brackets add first: 'Sum: 9'; 4 + 5 is added before meeting the string: '9 is the sum'.

Answer: OOP in Java
BlueJ
Sum: 45
Sum: 9
9 is the sum

Example 5: Abstraction versus encapsulation · 2 marks · Very short answerHarder exam level

Distinguish between data abstraction and encapsulation with one example each.

Try it first, then show the solutionSolution
  1. Abstraction: showing only essential features and hiding details, e.g. driving a car with steering and pedals.
  2. Encapsulation: wrapping data and methods into one unit and protecting the data, e.g. a capsule or a class with private data.

Answer: Abstraction shows only the essential features and hides the details (a driver uses the steering and pedals without knowing the engine). Encapsulation wraps data and its methods into one unit and protects the data (a class Account keeps balance private, changed only by deposit() and withdraw()).

Example 6: Role of the JVM · 2 marks · Short answerHarder exam level

What is the JVM? Explain its role in running a Java program.

Try it first, then show the solutionSolution
  1. JVM: the Java Virtual Machine, software that runs Java bytecode.
  2. It loads and verifies the .class file and converts bytecode into the machine code of the computer, using an interpreter and JIT compiler.

Answer: The JVM (Java Virtual Machine) is software that runs Java bytecode. It loads the .class file, checks it for safety and translates the bytecode into the machine code of the computer it is running on, so the program executes.

Example 7: Library card program · 15 marks · Long answerHarder exam level

Write a Java program to print a library card in the following format using print() and println():
********
CITY SCHOOL LIBRARY
********
Name : Ananya Rao
Class : IX B
Books allowed : 3
Valid till: 2027
********
The number of books allowed must be printed as the result of 2 + 1.

Try it first, then show the solutionSolution
  1. class LibraryCard
    {
    public static void main(String args[])
    {
  2. System.out.println("********");
    System.out.println(" CITY SCHOOL LIBRARY");
    System.out.println("********");
  3. System.out.print("Name : ");
    System.out.println("Ananya Rao");
    System.out.print("Class : ");
    System.out.println("IX B");
  4. System.out.print("Books allowed : ");
    System.out.println(2 + 1);
    System.out.println("Valid till: " + 2027);
    System.out.println("********");
    }
    }
  5. print() leaves the cursor on the same line so the value follows the label; println(2 + 1) adds the numbers and prints 3; "Valid till: " + 2027 joins the number to the text.

Answer: Output (as run):
********
CITY SCHOOL LIBRARY
********
Name : Ananya Rao
Class : IX B
Books allowed : 3
Valid till: 2027
********

Case-study practice (Section B style)

Read the situation, then answer every part. In a school exam set on the board pattern this is a 7-mark question split into 2 + 2 + 3 marks.

A school canteen app

Imagine a team of students writing a canteen ordering app in Java using BlueJ. They make a class FoodItem with private data name and price, and methods to change the price. A class Beverage reuses FoodItem and adds a size (small or large). A method bill() calculates the bill differently for cash and for UPI payments. Students see only 'Order' and 'Pay' buttons. The team writes the code on Windows, but the school server runs Linux.

  1. (i) · 2 marks

    Which OOP principles are shown by (i) Beverage reusing FoodItem and (ii) private price changed only through methods?

    Answer

    Answer: (i) Inheritance. (ii) Encapsulation.

    1 mark each.

  2. (ii) · 2 marks

    Which principles are shown by (i) bill() working differently for cash and UPI and (ii) students seeing only 'Order' and 'Pay'?

    Answer

    Answer: (i) Polymorphism. (ii) Data abstraction.

    1 mark each.

  3. (iii) · 3 marks

    Explain how the program written on Windows will run on the Linux server, naming the files and software involved.

    Answer

    Answer: javac compiles the .java source files into .class files containing bytecode. The bytecode is copied to the server, where the Linux JVM translates it into Linux machine code and runs it, so no change to the program is needed.

    1 mark .java to .class, 1 mark bytecode is machine independent, 1 mark JVM on Linux.

Where the marks are

How a typical answer is split into step marks. Show every step: a right final answer alone rarely earns full marks.

Define encapsulation with a real-life example. (2 marks) (2 marks)

StepMarks
Wrapping data and methods into a single unit (class) and protecting the data.1
Real-life example (capsule, ATM) or Java example (private data with public methods).1

Program: print a formatted library card using print() and println(). (15 marks) (15 marks)

StepMarks
Class declaration with a valid name and braces.2
Correct main() header.3
Heading lines with println().3
Labels with print() followed by values with println() on the same line.4
Arithmetic (2 + 1) and string joining ("Valid till: " + 2027) giving the exact output.3

Where students lose marks in Introduction to Object Oriented Programming Concepts

The slips examiners see most often, and what to write instead.

  • Mistake: Defining abstraction as 'hiding data'

    Abstraction and encapsulation are confused.

    Wrong working

    Abstraction means keeping data private inside a class.

    Right working

    Abstraction shows only essential features; encapsulation wraps and protects data.

    Do this: Abstraction = what the user sees; encapsulation = how the data is packed.

    Usually costs: 1 mark.

  • Mistake: Saying the compiler produces machine code

    Compilation in other languages is remembered.

    Do this: javac produces bytecode (.class); the JVM produces machine code.

    Usually costs: 1 mark.

  • Mistake: Definition without an example

    Only the textbook line is learnt.

    Do this: The syllabus requires real-life examples; add one to every principle.

    Usually costs: 1 mark per principle.

  • Mistake: Confusing print() and println()

    They look alike.

    Do this: println() moves to a new line after printing; print() stays on the same line.

    Usually costs: 1 mark in output questions.

Practice questions on Introduction to Object Oriented Programming Concepts

Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.

  1. Q1 · 1 mark · MCQExam level

    Which of these is an open source implementation of Java?
    (a) MyEclipse
    (b) OpenJDK
    (c) Acrobat Reader
    (d) Windows

    Hint

    Open JDK.

    Answer

    (b) OpenJDK

  2. Q2 · 1 mark · MCQExam level

    The principle by which one class acquires the properties of another is:
    (a) encapsulation
    (b) polymorphism
    (c) inheritance
    (d) abstraction

    Hint

    Parent and child.

    Answer

    (c) inheritance

  3. Q3 · 1 mark · MCQHarder exam level

    Which of the following does an applet NOT have?
    (a) Bytecode
    (b) A main() method
    (c) Restricted access
    (d) The ability to run in a browser

    Hint

    Applications start from it.

    Answer

    (b) A main() method

  4. Q4 · 2 marks · Very short answerExam level

    Define polymorphism with a real-life example.

    Hint

    Many forms.

    Answer

    Polymorphism is the ability of one name or action to take many forms. Example: the same person behaves as a student in class, a player on the field and a customer in a shop.

  5. Q5 · 2 marks · Very short answerHarder exam level

    Differentiate between source code and object code.

    Hint

    Who writes it; who runs it.

    Answer

    Source code is the program written by the programmer in Java (.java file), readable by humans. Object code is the machine code produced from it (via bytecode and the JVM) that the processor executes directly.

  6. Q6 · 2 marks · Short answerHOTS / competency

    A student says, 'Java is platform independent, so the JVM is the same on every computer.' Is this correct? Explain.

    Hint

    What is the same and what differs.

    Answer

    No. The bytecode is the same everywhere, but each operating system has its own JVM that translates that bytecode into its own machine code. Platform independence comes from the common bytecode, not from identical JVMs.

  7. Q7 · 2 marks · Very short answerHarder exam level

    Give two reasons why BlueJ is popular in schools.

    Hint

    Learning.

    Answer

    (1) It is free and open source and designed for teaching. (2) It shows classes as diagrams and lets students create objects and call methods interactively, making OOP easy to see.

  8. Q8 · 2 marks · Very short answerExam level

    Name four real-time applications developed using Java.

    Hint

    Syllabus examples.

    Answer

    Any four: mobile apps, desktop GUI applications (Acrobat Reader), web-based banking or e-commerce systems, games, robotic health-care applications, online quiz or student grading systems, chatbots, virtual assistants.

  9. Q9 · 2 marks · Short answerHOTS / competency

    In a hospital management program, the class Patient keeps the medical record private and gives a method viewRecord() that checks a password. A class InPatient adds a bed number. Identify two principles and justify each.

    Hint

    Private data; adds to an existing class.

    Answer

    Encapsulation: the record (data) and viewRecord() (method) are wrapped in Patient and the data is protected. Inheritance: InPatient acquires everything of Patient and adds a bed number.

Test your recall

Answer in your head or on paper first, then open the card. Pulling an answer out of memory makes it stick far better than re-reading.

  1. 1.Extension of a Java source file?Show answer

    .java

  2. 2.What converts bytecode into machine code?Show answer

    The JVM (interpreter and JIT compiler).

  3. 3.Principle: one name, many forms?Show answer

    Polymorphism.

  4. 4.Name of the Java compiler program?Show answer

    javac.

  5. 5.Which type of Java program runs in a web browser?Show answer

    Applet.

  6. 6.Who led the team that developed Java?Show answer

    James Gosling (Sun Microsystems).

Best order to study it

  1. Learn POP versus OOP.
  2. Learn the four principles with one real-life and one Java example each.
  3. Learn open source, JDK, OpenJDK, IDEs and requirements.
  4. Learn applets versus applications.
  5. Learn the compilation process and the role of the JVM; then the features of Java.

Quick revision checklist

The night before the exam: can you do each of these without looking?

  • POP: procedures, open data, top-down. OOP: objects (data + methods), hidden data, bottom-up.
  • Abstraction: essentials only; encapsulation: wrap and protect; inheritance: acquire; polymorphism: many forms.
  • OpenJDK: open source Java; IDEs: BlueJ, DrJava, NetBeans, MyEclipse.
  • Application: stand-alone with main(); applet: in browser, no main().
  • .java → javac → .class (bytecode) → JVM → machine code; write once, run anywhere.
  • Features: simple, object oriented, platform independent, robust, secure, multithreaded.

Introduction to Object Oriented Programming Concepts: frequently asked questions

Do I need to write applets?

No. You only need to define applets and distinguish them from applications. All the programs you write in ICSE are applications.

Why does the syllabus show main() without public static?

In BlueJ you can run void main() directly, so CISCE treats public, static and String args[] as default. Older Java versions, such as the JDK 17 used to test this guide, need public static void main(String args[]) to run a program outside BlueJ; this guide uses the full form, which works on every version.

Is Java the same as JavaScript?

No. They are different languages with different uses; the similar name is historical. ICSE Computer Applications uses Java.

Based on: CISCE ICSE 2028 Computer Applications (86) syllabus (Classes IX and X); CISCE Regulations for ICSE Examination Year 2028