...Loading...

It's a OOP world...after all!
java

The history of Java began in 1991 when James Gosling
and his team at Sun Microsystems started the Green Project

An easter egg logo?

It's our way of discussing 'encapsulation,' where an entity contains everything it needs to do it's job: raw ingredients (attributes) and 'super powers' - methods (functions). This is a pivotal idea in the world of 'Object Oriented Programming' where 'classes' are like engines or factories that pump out self-maintaining 'objects'

This song, sung to DisneyLand's 'It's a Small World' is a tribute to these ideas, 'encapsulated' in a zany song!

Don't remember the original tune? We've got your covered with our Small World movie clip!

If you are fortunate enough to be taking APCS, we also have a review of the big ideas about Java and OOP here at TNT. Check it out!


Data Type
Learning Java now
Over half a year
Are we used to it?
Over all our fears?
What’s the deal?
Why the hype?
Over 10 data types!
It’s an OOP OOP World!                
                            
Classes
There’s a big idea
You must really grasp
It’s that everything belongs in a class
What’s a class, did you say?
Answer well, get an A!
It’s an OOP World after all                            
                                

It's a OOP World after all
It's a OOP World after all
It's a OOP World after all
It's a OOP OOP world!

Methods
With our methods
You may have been annoyed
They return a type
But they may be void
Just don't freak, don't you run
They are only functions...
It's an OOP World after all!                            
                                
Methods and Parameters
There’s a kooky thing
But it’s Heaven sent
Called ‘parameter’ or else
Argument
For a method they’re fuel
A magnificent tool
It’s an OOP OOP world                        
                                
Driver code
There is driver code
That controls the show
The main method makes
The whole program go
Public? yes...static too!
String array passing through!
It's a OOP World after all!                       
                                
Compiled vs Interpreted
Python runs its code
Till it hits a snag
Java’s different: some think that its a drag
It's compiled: just one flaw
Whole code breaks, then you bawl
It's an OOP World after all!                       
                                
General data structures
Data structures wow!
Give them lots of praise
Using tons of them,
Likely earns ‘a raise’
Did you see
This verse done
Did you catch the big pun?
It’s a OOP OOP World!                 
                                

It's a OOP World after all
It's a OOP World after all
It's a OOP World after all
It's a OOP OOP world!

ArrayLists
ArrayLists for storage
Dynamic-sized
Member methods make 
These guys highly prized:
'get', 'add', 'set' and 'contains'
Even more still remain!
It’s a OOP OOP world         
                                

It's a OOP World after all
It's a OOP World after all
It's a OOP World after all
It's a OOP OOP World!

2D Arrays (Matrices)
Many rows on board
Each with columns, hey!
We've got what we need for a game to play
Nested loops, cells in places
Specified by dual square braces
It’s a OOP OOP world         
                                
Recursion
What’s recursion now,
Get it off the shelf:
A loop process when 
Methods call themselves
A base case, don't you blow
Or you'll stack overflow!
It's an OOP OOP World!                          
                                

TNT is an educational, evolutionary site serving as a playground
where teachers and students can field-test programming designs.

Stage No:
Last update: