Saem said:There is no performance hit. I believe it'll be faster since the value will be immediate rather than requiring a fetch from a memory location.
public final int log(final int level, final String msg)
{
if (level <= logLevel) {
logger.log(level, msg);
}
}
/**
* The name of the Index.
*/
private final String name;
/**
* Constructs an Index with the specified name.
*
* @param indexName The name of the index.
*/
public Index(final int indexName)
{
name = indexName;
}
K.I.L.E.R said:Thing about JAVA that I like is that it frequently gets updated.
pcchen said:K.I.L.E.R said:Thing about JAVA that I like is that it frequently gets updated.
That's something I don't like.
I think it's funny when people said C++ has too many "redundant" or "complex" features which Java don't need. Now Java is incorporating these features.
K.I.L.E.R said:Well you don't have to use them. I doubt many devs use ALL the features of Java anyway.
There are so many different ways of getting 1 job done it isn't funny.
The point I'm trying to make is that you can accomplish something anyway you like. Features are just there to either make the task quick, simple or quick and simple.
:?pcchen said:K.I.L.E.R said:Well you don't have to use them. I doubt many devs use ALL the features of Java anyway.
There are so many different ways of getting 1 job done it isn't funny.
The point I'm trying to make is that you can accomplish something anyway you like. Features are just there to either make the task quick, simple or quick and simple.
You misunderstand me. What I think is, C++ is a multiple paradigm language. It is designed to have many ways to get a job done. On the other hand, Java is not. Java is designed to be an OOP language. At first, Java designers and users criticize C++ as a complex language, while Java is "clean." However, now it looks like Java is following C++'s step! If so, why bother designing a new language at first?
pcchen said:You misunderstand me. What I think is, C++ is a multiple paradigm language. It is designed to have many ways to get a job done. On the other hand, Java is not. Java is designed to be an OOP language. At first, Java designers and users criticize C++ as a complex language, while Java is "clean." However, now it looks like Java is following C++'s step! If so, why bother designing a new language at first?
Saem said:I've never used it, but isn't there supposed to be some enum class or something for this reason?
Snyder said:It is? Could you show me where?
pcchen said:Snyder said:It is? Could you show me where?
I don't follow Java's development closely, but it seems Java is getting some features C++ has, and people are proposing other features into Java, such as generic types. I don't know, but it looks like Java is getting more complex. Perhaps a useful real world language has to be that complex, after all.