Hong Kong · Java · 13 to adult

Java course in Hong Kong

Java is a strange language to search for in Hong Kong. The local DSE no longer uses it, yet a student at an international school may need it for AP Computer Science A or A level, an IB student may choose it, and many university programming courses still start with it. If Java is the language in front of you, our lessons teach it properly: one to one, live online and in English.

Teaching since 2020 · 10,000+ students worldwide · Hong Kong lessons are always one to one, live and in English

In short

Modern Age Coders teaches Java to learners in Hong Kong from about 13 to adult, in live online lessons, one to one and in English, at Hong Kong times you choose. Teens learn the full language for school and contests, AP Computer Science A students follow a dedicated exam course, and university students and adults take a course that runs from core Java to building real applications. Java is not an HKDSE ICT language any more, but AP, Cambridge A level, IB and many universities use it. The first class is free.

Courses

Which Java course should I take?

Pick by where Java is coming from in your life: school, an exam, or university and work.

Java in Hong Kong

Is Java used in Hong Kong schools and exams?

Not in the HKDSE any more, but in several other places a Hong Kong student may meet. Here is where Java stands in each, from the organisers' own documents.

Where Java counts for a Hong Kong student, by exam or contest
Exam or contestJava's placeSource
HKDSE ICTListed only for the 2024 exam or before; Python and C++ from the 2028 exam onwardEDB ICT guide, 2021, Appendix 3
AP Computer Science ARequired: solutions “be written in the Java programming language”College Board course overview
Cambridge AS and A Level CS 9618Added, alongside Python and Visual Basic, in the 2027 to 2029 syllabusCambridge 9618 page
IB Diploma Computer ScienceA choice: Java or Python, first assessed May 2027ManageBac summary of the new guide
Hong Kong Olympiad in InformaticsNot used: C++ first, Python second classHKOI rules

Sources: EDB, ICT Curriculum and Assessment Guide (S4 to 6) (2021), Appendix 3, table read against the printed page; College Board, AP Computer Science A course overview; Cambridge International, AS and A Level Computer Science 9618 page; ManageBac (Faria Education Group), “New Computer Science Guide: What to Expect” (a school-software vendor's summary, as the IB's own site refused our request); HKOI rules. All read 23 November 2026.

If you are on the DSE track

Then Java is a choice, not a requirement. The EDB's table shows Java in the oldest cohort column only, and the 2028 exam onward lists just Python and C++. A DSE student who wants Java for interest or for university later can learn it, but should not expect it to help in the ICT paper.

For DSE ICT itself, our Python course for Hong Kong explains what the exam uses.

If you are at an international school

Java matters most here. A student taking AP Computer Science A must write Java. A Cambridge 9618 student may now choose it. An IB student may pick Java or Python for the new course. Each needs the language plus the exam's own habits.

Our pages on AP Computer Science A classes and choosing a language for 9618 Paper 4 go further.

Which Java

Which version of Java should I learn?

A long-term-support release. Oracle's roadmap says “Java SE 8, 11, 17, 21, and 25 are LTS releases”, and those are the versions schools, universities and employers settle on.

Recent Java long-term-support releases, from Oracle and OpenJDK
ReleaseWhat the publisher saysFor a learner in 2026
Java 21An LTS releaseStill widely installed in schools and universities
Java 25An LTS release; “JDK 25 reached General Availability on 16 September 2025.”The newest LTS; a good default
Java 29“the next planned LTS release is Java 29 in September 2027”Not yet released

Sources: Oracle, Java SE Support Roadmap; OpenJDK, JDK 25 project page. Both read 23 November 2026. The last column is our advice. Exams test the language, not the latest features, so 21 or 25 both work for AP, A level and IB.

A friendlier start since Java 25

Java has a reputation for heavy first programs: a class, public static void main(String[] args), before anything happens. JEP 512, delivered in Java 25, aims to “Evolve the Java programming language so that beginners can write their first programs without needing to understand language features designed for large programs.”

We use that for the very first lessons where it helps, then move to the full form, because exams and most existing code still use it.

What to install

A JDK (not just a runtime) and an editor. Our teen course uses IntelliJ IDEA; many schools use BlueJ or Eclipse, and we teach in whatever your school expects. The mentor installs it with you in the free class.

If the compiler throws a “cannot find symbol” error on day one, you are in good company: see the cannot-find-symbol error explained.

AP Computer Science A

What is on the AP Computer Science A exam?

The College Board calls AP Computer Science A “an introductory college-level computer science course” that “focuses on object-oriented programming and problem-solving using the Java programming language.” The exam tests a defined part of Java, not all of it.

AP Computer Science A exam structure, as published by the College Board
SectionQuestionsTimeShare of score
I: Multiple-choice4290 minutes55%
II: Free-response490 minutes45%
Whole exam463 hours100%

Source: College Board, AP Computer Science A course overview (PDF), read 23 November 2026: “The exam is 3 hours long and includes 42 multiple-choice questions and 4 free-response questions.” The course also needs “a minimum of 20 hours of hands-on, structured lab experiences”, which the school arranges. AP exams are taken through a school or authorised test centre, not through us.

What the numbers mean in practice

By our own division, that is a little over two minutes for each multiple-choice question and about twenty-two minutes for each free-response question. Multiple-choice rewards fast, accurate code reading; free-response rewards writing correct methods and classes by hand.

The College Board says the exam “covers a subset of Java”, and students receive a quick-reference sheet of the library methods that may appear. Knowing exactly what is in that subset saves weeks.

How we prepare students

Our AP course teaches Java from zero, then practises both sections with questions we write ourselves in the exam's style; we never reproduce College Board questions. Hand-written code practice matters, so students write methods on paper or a plain editor without autocomplete.

We do not promise a score. Our AP CS A practice questions page shows the kind of work involved.

A sample lesson

What does a Java lesson look like?

Every Java learner eventually writes if (answer == "yes") and wonders why it fails. The cause is one of the most important ideas in the language: two things can be equal in value without being the same object. Here is the lesson we use, run on a real JDK.

  1. Make two strings that look the same. One comes from input at run time, one is written in the program. Print both: identical.
  2. Compare with ==. The Java Language Specification says that for objects, == is true only if both “refer to the same object or array”. Two separate String objects fail, however alike they look.
  3. Compare with equals(). String.equals is true when the other value “represents the same sequence of characters”. That is what “equal” usually means.
  4. Try boxed numbers. For Integer objects, Java guarantees that small values are shared: the specification names “an integer in the range -128 to 127 inclusive”. Outside that range, == on Integer objects may be false.
  5. Try plain int. Primitive values compare by value with ==, always.
Same object or same value? A Java equality testJava
// Two kinds of "equal" in Java: the same object, or the same value. Our own example.
import java.util.Scanner;

public class SameOrEqual {
    public static void main(String[] args) {
        String typed = new Scanner("kowloon\n").nextLine();   // as if a user typed it
        String stored = "kowloon";
        System.out.println("1. typed == stored      : " + (typed == stored));
        System.out.println("   typed.equals(stored) : " + typed.equals(stored));

        Integer a = 127, b = 127;
        Integer c = 128, d = 128;
        System.out.println("2. 127 == 127 (Integer) : " + (a == b));
        System.out.println("   128 == 128 (Integer) : " + (c == d));
        System.out.println("   128 equals 128       : " + c.equals(d));

        int e = 128, f = 128;
        System.out.println("3. 128 == 128 (int)     : " + (e == f));
    }
}

Our own program, written for this page. Compiled and run with OpenJDK 21; the output below is exactly what it printed.

OutputOutput
1. typed == stored      : false
   typed.equals(stored) : true
2. 127 == 127 (Integer) : true
   128 == 128 (Integer) : false
   128 equals 128       : true
3. 128 == 128 (int)     : true

Line 1: two strings with the same letters are different objects, so == is false while equals() is true. Line 2: Integer 127 is cached, so both names point at one object; 128 is outside the guaranteed range and, on our run, gave two objects. Line 3: plain int values compare by value. The Integer.valueOf documentation says it “will always cache values in the range -128 to 127, inclusive, and may cache other values outside of this range”, so the 128 result can differ on another JVM; never rely on it.

Why this lesson matters

It is a classic multiple-choice trap in AP Computer Science A and a common bug in first-year university assignments. More importantly, it teaches the difference between a reference and the object it points to, which everything in object-oriented Java rests on.

Students who understand this line by line write their own equals() methods correctly later, when they meet classes of their own.

How the mentor teaches it

Prediction first: the student writes true or false next to each line before compiling. Most predict line 2 wrong. Then the student draws boxes and arrows for each variable, which makes the result obvious.

Finally the student explains, in English, why line 3 can never be false. Explaining is how we check the idea has really landed.

  1. Predict. What does Integer.valueOf(-128) == Integer.valueOf(-128) print? Why is that one guaranteed?
  2. Fix it. Rewrite if (answer == "yes") so it works for any input. What happens if answer is null?
  3. Your own class. Write a Point class with x and y, then make two equal points. Does == say they are equal? Add an equals method.
  4. Explain. In two English sentences, say what == compares for objects.

Java or Python?

Should I learn Java or Python first?

Learn the one your exam or course requires. If nothing requires either, most beginners find Python quicker to start and Java better at teaching structure. Neither choice is wasted; the second language comes much faster.

Java or Python first: our advice by situation
Your situationStart withWhy
HKDSE ICT studentPython (or C++)The languages the EDB lists for the exam
AP Computer Science A this yearJavaThe exam is written in Java
IB CS, free to chooseEither; match your teacherClass examples and feedback will be in that language
University course starting in JavaJavaFirst assignments arrive fast
Aiming for HKOIC++, then PythonJava is not used in the contest
Adult, no exam, curiousPython, then Java if work needs itFaster early results

Our own advice, based on the sources in the table above. For the longer argument, see Python or Java first?

What the course covers

What does a Java course for teens cover?

Our teen course runs about forty weeks in four phases. Exam students take the parts their syllabus needs; others take it all.

Java for Teens: phases and sample projects (our course)
WeeksPhaseSample projects
1 to 12Foundations: types, decisions, loops, arrays, methods, strings, files, classes, inheritance, interfacesA grade calculator; a Wordle-style word game; a bank account class; a shape hierarchy
13 to 24Collections, generics, lambdas and streams, JavaFX apps, a 2D game, a first Minecraft modA contact manager with HashMap; a desktop note app; a brick-breaker game
25 to 32Data structures and algorithms built by handAn expression evaluator with stacks; a spell checker on your own hash table; a maze solver
33 to 40APIs, AI features and a capstoneA finished application presented and explained

Source: our Java for Teens course plan (40 to 48 weeks). One to one, an AP student can go straight from the foundations to exam practice. Full detail on the course page; more practice ideas in Java projects for students.

At the end we issue our own certificate of completion. It is not an AP score, a Cambridge or IB result, or an Oracle certification, and no exam board or company stands behind it. Adults who want an Oracle credential can read our page on Java certification preparation.

English and one to one

Why learn Java one to one, in English?

Because Java's errors are strict and specific, and a learner moves fastest when someone sees the exact line. And because exams, documentation and every Java error message are in English.

A mentor for one

Hong Kong learners get one-to-one lessons only. For Java that means the mentor can follow your school's exact editor and style, use your teacher's examples, and spend a whole lesson on inheritance if that is where you are stuck.

It also suits university students, whose assignments arrive on their own timetable: a lesson can be about this week's task, explained rather than done for you.

English, the working language

Keywords, library names and compiler errors are all English. Mentors speak at a measured pace and type new terms in the chat, and students explain their code aloud, which is good practice for free-response answers too.

No lessons are in Cantonese or Mandarin. See coding classes taught in English for more.

Example lesson times: Hong Kong and India
Hong KongIndiaTypical learner
6:00 pm, weekday3:30 pmA secondary student after school
9:00 pm, weekday6:30 pmA university student or working adult
4:00 pm, Saturday1:30 pmAnyone preferring a weekend slot

Hong Kong (UTC+8) and India (UTC+5:30) keep fixed offsets all year with no summer time, so the gap is always two and a half hours (IANA time zone database). The times shown are our examples only.

Progress

How will I know my Java is improving?

Our own milestones for Java learners, used in placement and monthly notes. They are not exam grades.

Java: our milestones
MilestoneYou canProof
1. CompileWrite, compile and run small programs; read compiler errorsFix five planted errors without help
2. ControlUse loops, conditions, arrays and methodsA grade calculator with methods for each step
3. ModelDesign classes with fields, constructors and equals()The Point class from the lesson, done right
4. ExtendUse inheritance, interfaces and polymorphismA shape hierarchy with one shared method
5. CollectChoose between ArrayList, HashMap and sets; handle exceptionsA contact manager that survives bad input
6. ReasonAnalyse and write algorithms; answer exam-style questions on paperA timed free-response answer, written by hand

For students

Predict the output before you run anything. Exams give you no compiler.

When == surprises you, draw the arrows.

For parents

Ask to see milestone 3: a class your child designed and can explain.

For AP students, timed practice from about three months before the exam is normal; we plan backwards from the date.

More courses

Nine more courses for Java learners

All live and in English, and for Hong Kong every one is taught one to one.

I

Exams beside Java

Ages 14 to 19

JAJA / EXAM / 01

Cambridge A Level CS 9618

Theory and programming papers, Java now allowed.

Open the syllabus

JAJA / EXAM / 02

IB Diploma Computer Science

Concepts, case study and Paper 2 in Java or Python.

Open the syllabus

JAJA / EXAM / 03

AP CS Principles

The broader AP course, often taken first.

Open the syllabus
II

Other languages

Ages 13 to 18

JAJA / LANG / 01

Python for Teens

The DSE language, learned in full.

Open the syllabus

JAJA / LANG / 03

Competitive Programming

Contest problems with our own practice sets.

Open the syllabus
III

Beyond the basics

13 and over

JAJA / NEXT / 01

Git and GitHub for Teens

Version control, the way real projects work.

Open the syllabus

JAJA / NEXT / 02

Kotlin (adults)

Java's modern cousin, for Android and servers.

Open the syllabus

JAJA / NEXT / 03

App Development (adults)

Phone apps for iOS and Android.

Open the syllabus

How classes run

When can I take Java lessons, and how do they work?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. You code in your own editor on your own computer; the mentor in India follows the shared screen, two and a half hours behind Hong Kong on the clock.

After school

A 6 pm start in Hong Kong is 3:30 pm for the mentor.

Late evening

9 pm in Hong Kong; 6:30 pm in India.

Weekend

Saturday afternoon, or any weekend hour you prefer.

Your editor

IntelliJ, BlueJ or Eclipse, whichever your school uses.

Predict output

Every run is preceded by a written guess.

Arrows on paper

Objects and references drawn, not imagined.

Exam habits

Hand-written methods for AP and A level students.

Your assignments

Explained and discussed, never written for you.

Short practice

A focused task between lessons.

Student work

Projects our students have built

From learners on our longer courses. Browse the student labs for more.

NutriLife AI nutrition coach project screenshot

AI and ML

NutriLife

An AI nutrition coach that reads what you eat and works you toward a target.

by Bhavya · Open it

Misti AI chatbot for maths and coding screenshot

AI and ML

Misti

A chatbot that answers mathematics and programming questions, built and deployed by a student.

by Harshit · Open it

GuardianX AI internet safety assistant screenshot

AI and ML

GuardianX

An assistant that helps a young person recognise unsafe situations online.

by Vivaan · Open it

SkyCast weather forecast application screenshot

Web app

SkyCast

A weather forecasting site with live conditions for any location.

by Krish

Fees

Java course fees

You are charged monthly, in Hong Kong dollars as shown, and only for the month that is beginning; there is no prepayment. A payment-gateway charge, where one applies, is displayed before you pay. The JDK and editors we use are free.

Free first class

Free

no card required

  • A free first class, one to one
  • A JDK and editor set up with you
  • No card needed to book
Book it

One to one

$1,200 HKD

a month, eight live classes

  • One mentor who knows your syllabus
  • Lessons shaped around your exam or course
  • Times that fit your week
Start here

What families say

Rated 4.9 across 547 Google reviews

What students and parents wrote on Google, word for word.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

Questions from Hong Kong learners

Java course: questions and answers

Are lessons taught in English?

Yes, every one. Mentors teach live from India at a measured pace and type new terms in the chat. Java and its error messages are English. We do not teach in Cantonese or Mandarin.

Is it one to one?

Yes. In Hong Kong we offer only one-to-one lessons, with the same mentor each week.

When can lessons be?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. India is two and a half hours behind Hong Kong, so 9 pm in Hong Kong is 6:30 pm for the mentor.

Does HKDSE ICT use Java?

No longer. The EDB's guide lists Java only for the 2024 exam or before; from the 2028 exam the programming languages are Python and C++. Java is still useful for AP, A level, IB and university.

Can you prepare me for AP Computer Science A?

Yes. Our AP course teaches the Java subset the exam covers and practises both sections with our own questions. You sit the exam through your school or an authorised centre. We never promise a score.

Which Java version will I use?

A long-term-support release, usually Java 21 or 25, or whatever your school or university uses. Exams test the language, so either is fine.

I am at university and my course uses Java. Can you help?

Yes. Lessons can follow your course week by week, explaining concepts and reviewing your approach. We do not write graded assignments for you.

What age can I start?

From about 13. Younger children usually start with Scratch or Python and come to Java later.

Do I get a certificate?

Our own certificate of completion. It is not an Oracle certification or an exam result.

How do fees work?

Monthly in Hong Kong dollars, with nothing paid ahead. Any payment-gateway charge is shown before you pay. The first class is free.

Related

More pages for Java learners in Hong Kong

For the exam, the language and the step after.

Coding classes in Hong Kong

All our Hong Kong courses by age.

Python course in Hong Kong

For DSE ICT and beyond.

AP Computer Science A classes

Our AP CS A course in detail.

Java classes for teens

Our general Java page for teenagers.

Java for beginners

The first steps, explained.

How we teach

A one-to-one lesson, step by step.

More pages for Hong Kong

Part of the guide: Every Hong Kong page

More guides: Coding and AI classes in Hong Kong · 中文:英文授課編程課程 · Start here: Online coding for kids · AI, vibe coding and AI agents: AI agents course · By age and school level: Adults · HKDSE ICT and maths: DSE ICT elective guide · IB, IGCSE, A-level and SAT: A level Computer Science tutor · Olympiads and competitions: AMC 10 preparation · Guides for families: After-school coding · School holidays: AI summer course · Districts and areas: Causeway Bay

Start here

Book a free first Java class

In the free class we set up a JDK and editor, you write and compile a first program, and the mentor asks about your exam or course so the plan starts from what you actually need.

Reading first? See the teen Java course, the AP CS A course or the college Java course.

WhatsApp us · +91 91233 66161 · connect@modernagecoders.com

Live online lessons, one to one and in English, from mentors based in India. WhatsApp reaches us fastest.

Free. No card required.

Want a class sooner? Book a priority demo

A priority demo is a full class of about 45 to 60 minutes. After the class the mentor sends a written skill report and a personal learning roadmap on WhatsApp. If you enrol, the demo fee is adjusted against your first month's fee. Share your demo Order ID with us on WhatsApp and we take it off.

Book a priority demo

Keep exploring Modern Age Coders

Related courses and guides

Learn more

Free resources

From the blog

Start here

Free classPriority demoCall us