2
$\begingroup$

 This riddle is a computer program/language. Enjoy!

I used to love the Sun
Now I pray to my oracle
I'm said to virtualize all
I'm not picky, working anywhere...

I love my classes-all of them
I love my matter-known as objects
I love running parallel-too lazy to wait
Fans worldwide build and break with me!

My syntax-derived from a letter
many programmers found me familiar
I have nothing included-very greedy
And I must import all!

I want every line torn apart, as this is an easy one :)

$\endgroup$
1
  • 9
    $\begingroup$ After the first line, I knew it already :P. $\endgroup$ Dec 3, 2014 at 9:02

2 Answers 2

7
$\begingroup$

You are

Java

I used to love the Sun
Now I pray to my oracle

Sun Microsystems used to be the standards keeper for the JRE and JDK; now Oracle Ltd. has inherited that role.

I'm said to virtualize all
I'm not picky, working anywhere...

All methods in Java classes are what C++ calls virtual by default, referring to the fact that they are dynamically bound. Java code is deployable across numerous operating systems and platforms, in numerous "flavours" (standard, micro, and enterprise). A great deal of firmware also runs on Java.

I love my classes-all of them
I love my matter-known as objects

Java OOP structure primitives are called classes, and all Java classes are a subclass of Object

I love running parallel-too lazy to wait
Fans worldwide build and break with me!

Java 5 and later come with a significant concurrency (i.e. parallel execution) API. Java enjoys a broad adoption in numerous platforms worldwide.

My syntax-derived from a letter
many programmers found me familiar

Java inherits much of its syntax from the programming language C.

I have nothing included-very greedy
And I must import all!

By default, without imports, a Java file only has access to other classes in its package and classes in java.lang.*, which is an incredibly sparse collection of objects such as boxing primitives, System interface methods, and some common exceptions.

$\endgroup$
5
  • $\begingroup$ I was working on this when you got it $\endgroup$
    – michaelpri
    Dec 3, 2014 at 2:50
  • $\begingroup$ @michaelpri: I scooped you, did I? ;) $\endgroup$
    – COTO
    Dec 3, 2014 at 2:52
  • $\begingroup$ Gah, you were faster than me as well! +1 $\endgroup$
    – Doorknob
    Dec 3, 2014 at 2:53
  • $\begingroup$ me too :p FGITW $\endgroup$
    – d'alar'cop
    Dec 3, 2014 at 2:56
  • $\begingroup$ Good job! You did it... Technically, the fans part referred to Minecraft... But good job! $\endgroup$ Dec 3, 2014 at 12:42
0
$\begingroup$

Java


Unspoilered explanations below:

I used to love the Sun
Now I pray to my oracle

It used to be owned by the company Sun, but Oracle has since bought Sun. (Wikipedia link)

I'm said to virtualize all

Everything is an object in this language.

I'm not picky, working anywhere...

Its motto is "write once, run anywhere," and one of its design goals was to be cross-platform.

I love my classes-all of them
I love my matter-known as objects

Again, this language is OOP and everything is an object.

I love running parallel-too lazy to wait

Code can run in parallel with threads in this language.

Fans worldwide build and break with me!

"Write once, run anywhere" - it can even run on fans / refrigerators / etc.; it's also used worldwide.

My syntax-derived from a letter
many programmers found me familiar

This is a C-based language.

I have nothing included-very greedy
And I must import all!

Technically, <language name>.lang.* is imported by default, but most other classes must be explicitly imported.

$\endgroup$
1
  • 4
    $\begingroup$ Can I ask why you would answer a challenge question after closing a similar one? $\endgroup$
    – Bozman
    Dec 3, 2014 at 14:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.