112 reputation
14
bio website
location
age
visits member for 2 years, 3 months
seen Aug 4 at 17:38

Programmer Hobbysist, who's decently acquainted with C and C++. Dabbled in SDL and OpenGL with these languages. Experimented with Python. Perfecting Java and getting my feet lightly dipped into Android Development using Java.


Oct
1
awarded  Popular Question
Sep
24
awarded  Autobiographer
Jun
7
awarded  Talkative
Jan
31
awarded  Popular Question
Oct
26
awarded  Popular Question
Jun
7
awarded  Popular Question
Dec
8
awarded  Citizen Patrol
Nov
18
accepted Immutable Method in Java
Nov
18
accepted Java Dynamic Binding
Nov
16
comment Java Dynamic Binding
@SJuan76 Oh I thought my textbook said otherwise. Hmmmm. Thanks though.
Nov
16
comment Java Dynamic Binding
Wouldn't this code call Person::writeOutput()? 'Person mikeJones = new Student("Who?,MikeJones",44,4); mikeJones.writeOutput();'
Nov
16
asked Java Dynamic Binding
Nov
13
comment Immutable Method in Java
I am not 100 percent clear on how using an inteface and not knwoing the type relates becuase I don't fully understand how in C++ such a method optimizes.. I don't understand the virtual or non virtual thing? Are you speaking of the OOP term virtual like virtual methods or classes in C++? I don't remember much about it, it's been nearly 10 years since I first learned the fundamentals of C++ and OOP, and been at least 4 or 5 since I used it on a regularly basis.... How does it relate to optimization.. maybe this goes out of the q.'s scope....
Nov
12
comment Immutable Method in Java
You are saying that becuase it can't tell the compiler that the method will not modify the objects state affects performance? Why does it have to be called virtually?
Nov
12
comment Immutable Method in Java
@Giorgio true, it is easy to mix up immutable const reference/pointer with a variable who's value is not mutable.
Nov
12
comment Immutable Method in Java
Thank you! I can't remember how, with in C, informing the compiler it won't mutate it's arguments will speed or optimize the program; that can be researched on my own. Even with, in your example, variable arg of type B being final, there is no optimization -- Is this because the program is compiled and then interpreted towards the platform running the program?
Nov
12
asked Immutable Method in Java
Nov
2
awarded  Quorum
Oct
22
comment If-Else V.S. Switch end of flow
Contradictory is right!
Oct
22
comment If-Else V.S. Switch end of flow
Thanks. if-else statements are percieved/seemingly switch ( ... ) statements with a break at every end of each case body. Multiple if statements alone without an else pair, are percieved/seemingly switch( ... ) statements with No breaks at the end of each case body. I would describe how it be percieved, adding the details of nesting, but that'd be out of scope/more to chew for the chunk of this question.