Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
25 May, 2013, 08:05:40 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Looking for info...about java -  (Read 814 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Munchor
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 21 May, 2013, 17:58:01
Date Registered: 16 October, 2010, 15:39:13
Location: Position
Posts: 6209


Total Post Ratings: +174

View Profile
« on: 07 March, 2011, 23:21:47 »
0

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.
« Last Edit: 07 March, 2011, 23:22:18 by Scout » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.231 seconds with 32 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.