English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to learn java programming. Previously I learnt c and visual basic. I want to know from you:

1. What is the best compiler for XP and where to get. Note: I use 'tubo c' for C programming. It will be great if the compiler environment is as much same as 'turbo c'.

2. Which book you recommend. Entry level book is preferable.

3. Does it (Java) support Unicode fonts?

4. After Building what will be format? Will it be in .exe format?

2007-11-20 00:43:20 · 6 answers · asked by Nahid Hossain 3 in Computers & Internet Programming & Design

6 answers

1) The compiler you will be using will be Sun's JDK. Java uses a Just In Time (JIT) compiler. So essentially you will be writing what is called bytecode which when "ran" will use the JIT to compile it to match the platform you are working on. This is why Java can be somewhat slow when first starting an application - unlike the othe languages which you comile ahead of time and hope you won't have to run the application on a different platform (recomipiling and such).

2) Go through the free tutorials on Sun's website (they show you everything from simple "Hello World" code to more advanced Swing - GUI interfaces and such).

3) Yes it does.

4) You will write the code and save it in a .java file. This file is ran by the JIT to transform the bytecode to run the application. Another feature of Java are .jar files which act somewhat like an executable file. You "pack" your bytecode files into a .jar file and create a file that links the others together so that when you run the JIT, it will compile everything together at that time.

Hope this helps. Other than how you compile at the start rather than compile then start like the other languages, Java is pretty much the defacto of OOP.

Deion "Mule" Christopher

2007-11-20 01:05:16 · answer #1 · answered by Anonymous · 1 0

1. The Java compiler is named "javac". If you get a development environment such as Eclipse, the compiler is embedded in it.

2. I used Bruce Eckel's thinking in Java. I do not know if it is good enough for versions more advanced than 1.4.

3. Yes.

4. No ".exe" formats. Java is multi-platform. The format of its executable files (and of other classes) is ".class".

2007-11-20 00:57:42 · answer #2 · answered by Amit Y 5 · 1 0

Why roll your own when there is in all likelihood a calendar widget you can reuse? By the way, the Java API itself provides many useful classes and interfaces: Date, Calendar, GregorianCalendar, DateFormat, and SimpleDateFormat.

2016-05-24 07:46:04 · answer #3 · answered by holly 3 · 0 0

1. I don't know turbo c. Google "compare java ide" and you'll find a bunch; one may be close, but it may be expensive.

2. Look for something with lots of examples + an intro to objects. Going from C to OOP is tricky. I learned by osmosis + on-line reference manuals. The Java site has a bunch of tutorials.

3. Yes.

4. .class files that you run with the java runtime:
javac MyClass.java <-to compile
java MyClass <-to run

2007-11-20 00:58:13 · answer #4 · answered by Meg W 5 · 1 1

:: HOW TO LEARN JAVA ::

1. Download java at http://java.sun.com.
2. Bookmark the javadocs api: http://java.sun.com/j2se/1.5.0/docs/api/
3. Go to http://www.javaranch.com and do the cattle roundup 3 times a day.
4. Also on javaranch, start doing every lesson in order on the Cattle Drive pages.

Once you've gotten the basics down, kick it into higher gear:
1. Make up a command line application to write (a game, such as mindsweeper, or the ubiquitous bank account app).
2. Set a deadline (like one week)
3. Show it off to your friends and family.
4. Most importantly: teach them how you did it.

2007-11-20 04:20:09 · answer #5 · answered by ch_guy87 3 · 2 1

I. NetBeans IDE.
II.The editorial WROX.
III.yes. support unicode.
IV.no, is a .class what is interpreted for virtual machine of java, or in JAR.

2007-11-20 10:17:00 · answer #6 · answered by Harvard9ff 2 · 1 1

fedest.com, questions and answers