What kind of language is Java? I've heard various phrases tossed around, like "object oriented," etc. And, as a low-level programmer highly proficient in something like Axe, would it be easy or hard to pick up?
It's easy to pick up if you have experience in other OOP languages.
Object Oriented Programming is like:
1 2 3 4
| str1 = "hey" a = str1.length() #a = 3
|
The upper code is python, but OOP is when you access object properties.
A property of a string can be its length, it's number of words, it's position (GUI), it's size (GUI).
Objects have an enormous number of properties and methods.
Take a look at this Java method:
1 2 3
| JButton button = new JButton(); //This creates a button button.setVisible(true); // setVisible() is a method, and I set it to true in order to show the button
|
Explaining OOP is hard, here's a Python example:
1 2 3 4
| a = "hello" print len(a) # This is non-OOP print a.__length__ #This is OOP
|
This last example is what made me understand OOP, I'll never forget it.
If you have experience in Python (and I know you do), you'll find Java more OOPy and easier to handle when it comes to GUI.
The inheritance is DAMN hard to get, but when you get it, you'll like it.