>if so, what are your thoughts on spending time on it. thumbs up or down ?
No language is perfect, I have some issues with Java, but overall it is a well constructed language and simple enough to learn.
>But java is completely a oop based programming language, making it very slow.
Eh? I thought it was slow because of the virtual machine and not the object orientation. Just so you know, object orientation doesn't make a language slow. There may be some overhead, but a well made OO language can be comparable in speed to low level systems level languages such as C. It's all in the care you take designing it and the goals you set for yourself. C++ is very fast even using OO, but that speed is obtained with a decrease in portability. Java is amazingly portable thanks to the JVM, but having the middleman slows things down when you use it.
>Java doesn't have pointers, and pointers is what seperates c/c++ from other programming languages.
Then this code is illegal in Java?
Code:
import java.io.*;
class node
{
int item;
node right;
public node ( int new_item, node next )
{
item = new_item;
right = next;
}
}
class list
{
private node head;
public void prepend ( int item )
{
if ( head == null )
head = new node ( item, null );
else
head = new node ( item, head );
}
public void walk()
{
node it = head;
while ( it != null ) {
System.out.print ( it.item + "->" );
it = it.right;
}
System.out.print ( "END" );
}
}
public class list_test
{
public static void main ( String args[] )
{
list my_list = new list();
my_list.prepend ( 1 );
my_list.prepend ( 2 );
my_list.prepend ( 3 );
my_list.prepend ( 4 );
my_list.prepend ( 5 );
my_list.walk();
}
}
I suggest you learn both, it never hurts to know several languages and may very well help you in the future.
-Prelude