Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

What I Think about Java


  • Please log in to reply

#1
NullPointerException

NullPointerException

    Member

  • Member
  • PipPip
  • 17 posts

I used to love Java. But then I really thought about its limits...I never really liked it when I compare it to C. C was very simple (yet low level. We should write C# or even Python software if we are not writing a driver or something) and it was extremely powerful (It's amazing you can put Assembly registers in C), but it being (too) low-level did not help. But we didn't need to write an entire class (and then, if you are like me, you will eventually run short of class names.) for a simple pointer (for more readability) in Python. Now, yes, we do need to write classes in C#. But at least, its high-level syntax gives me an idea. If I am going to catch an exception, I will simply name the sub-class (or super, depending on how you code), "Exception class" instead of naming "Try-catch-try" as I did to annoy my co-workers. But then again, I only need a single function in C (single word) to write a Hello, World application.

Printf("Hello, World!\n") #Very similar to Python. Except that you do not need a newline character.

In Python, this is even more simplified. The f is removed and you do not need a newline character (Not sure. Haven't coded in Python for months)

But in 2.x, you need raw_input instead of print("Hello, World!")

 

But let's take a look to C++.

#include 'std_lib_facilities.h'

int main()
{
	cout << 'Hello World!\n';
	return 0;
}

Obviously, C++ is a LITTLE more verbose. And a little too complex. But in Java, there are more restrictions than creativity and limits....

System.out.println("Hello....World!"); #The newline version.
System.out.print("Hello...");
System.outprint("World!"); #The non-newline version...and the ellipse shows JVM speed.

C++ is more powerful. More creative and more hard  (to master), but it pays off well. Things in C# are simplified a bit, but MS is basically saying "Screw you" to any non-MS OS. The MS Framework (the JVM of C#) does not include support for Linux or Mac. Third party devs are working on it, but that's it, no official support.


  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP