Programming with Java for beginners [closed] - java

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am a registered Student at a university in Switzerland, thus I know that programming is part of Electrotechnik (electrical engineering), the field I am going to take.
How can I learn programming with Java with easiest way, and without help by others?
I tried it through learning books, but I found it not easy, especially to do it alone.

For someone that knows nothing about programming, just reading tutorials will not do it for you. It would be good to download an editor and actually write the programs with any tutorial you use.
The thing about programming, the more you actually write the better you get at it.

Grüß, Thomas, if you haven't learned any programming it may be a little hard to start, but the Sun Java Tutorials are a good place to start.

Try the Java Tutorial. It will walk you through actual examples, with code that you can try out in various IDEs. I usually find that easier than reading a book.

Head First Java is good, if you can get past the style. Some people like it, others hate it (I haven't found anywhere in between). The funny part is the ones that like the style are the people who have more experience I find (not 100% true) but the book is aimed at those with little experience.
If you like the style it is a good book, if you hate the style, there are others, just let use know (as others have asked), are you 100% new to programming and if not what other languages do you know. Also what part(s) of the langauge are you having trouble with in particular?

In fact you have to learn two things, programming and Java.
I would recommend the book thinking in Java (Bruce Eckel), the current version is the 4th edition but you can download the 3th revision for free...

What books have you tried so far? When I started someone recommended to me "Sprechen Sie Java?" my Hanspeter Mössenböck which actually worked pretty well for me back then (having written not a single line of code before starting with Computer Science).

You could try a free course at Javapassion.

Another option for you if want to get a jump on your studies, you could go through the open courseware from M.I.T. For example, the Intro to Java Course.

Try the FREE book Java Programming for Kids, Parents and Grandparents by Yakov Fain

Get yourself set up and complete a "Hello World" tutorial, there are so many all over the next.
Once you know you can compile a Java program and view the output. Think of a small program. It might something as simple as converting Celcius to Fahrenheit and vice versa. Build that, using Google and whatever other resources you need to to find what you need to do. Once you get that running, think of something more complicated. Build that, keep doing this for a little while.
By building real apps, that give you something you want you will be much more motivated and you will understand what you are doing better because all the curly details haven't been solved for you the way they are in online or book tutorials. You may not use the most elegant design but you will learn more.
However at some point you will need to start to delve into books about Object Oriented architecture etc. but for now just jump in and force your brain to learn.

Another vote for actually doing some coding here. If you don't like the exercises in books then try programming something you're interested in personally. In my quest to learn C# I'm writing a program to correlate and display photos and GPS tracks and as a spin-off I'm trying to write a 3D graph component in WPF. Having a real problem I'm actually interested in makes a big difference to me, you can get a bit tired of implementations of bank account classes and vehicles.

Take a look at BlueJ. It was designed to teach Java

I recommend the Stanford course CS106A, which is available for free to download, and can also be found on iTunes. It's a great course, and the teacher is very enthusiastic:
http://www.stanford.edu/class/cs106a/
I agree with others that the Sun tutorials and the Thinking in Java free book are excellent, however, I don't think they can replace a video for someone completely new to the field.

Related

Java Tutorial Relevance [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Ok, so I've decided that I want to learn Java. It's my first more hardcore coding language, because the only other coding I've done is javascript (And I'm still relatively new to that). What I need is a good tutorial, that will assume you have no previous experience in java. I figured that I would take some web tutorials before I bought a book. This is the tutorial I found. It's a kids one, and I'm only 12, so I figured this would be good for me. My only concern about this tutorial is that it's assuming i'm in older software like windows '98. I'm not sure if I should be concerned that this is outdated or not. Additionally, I would love any other suggestions for java tutorials on windows, as I have to admit that it currently seems quite intimidating :P. I appreciate any feedback. Thanks.
I'm not sure if I should be concerned that this is outdated or not...
The age of the tutorial would be my first concern, and Java Programming for Kids, Parents, and Grandparents is copyright 2004. That's a decent year for a starter Java tutorial, since it will be compatible with the latest version of Java (it just won't cover anything brand new, but you won't need any of that when you're just starting out).
Also, the references to Windows 98 in the document make it sound like they expect the reader to have a newer operating system. Case in point, on page 18 of the PDF we see this:
If you have an old Windows 98 computer...
So the document is good for anyone with Windows 98, but they assume that Windows 98 is an old computer (the author gives special advice for Win98 users that nobody else needs). The document also references Windows XP, e.g. when the author provides a screenshot from his Windows XP laptop, so the author isn't assuming all readers are using Windows 98.
Ultimately, I wouldn't worry about the age of the document you're reading or references to Windows 98. If it's helping you, keep reading. :)
As for other Java tutorials, I'll defer to the other answers here. Good luck.
When I learned java I used Central Connecticut University's introductory course. It tends to go slow enough for you to understand but also fast enough to where you don't get bored.
Be sure to do the exercises at the end of the chapters!
Personally, I like the Oracle/Sun tutorials.
Just stay away from the enterprise stuff for now.
*edit: I would like to add that one of the best ways of learning a new language is to try and recreate something simple in that language. This could be a little server which just tells you the current time, a simple tic-tac-toe game, etc.
I learn't most of the basics though TheNewBoston. It was clear and was separated into multiple sections. They are video tutorials, I did use more resources to supplement it later on.
Link: http://thenewboston.org/list.php?cat=31
It's a pretty good kid's tutorial, even if it is a little outdated. If you get bored with that book and are feeling a little adventurous, I recommend trying Building Skills in Object-Oriented Design. The book goes through a complete design of Roulette, Craps and Blackjack. Three games that are complex enough that they can't be trivially designed. Oracle/Sun tutorials are also good, like Steven suggested.
Oracle actually has a pretty good tutorial on their site (for starting out). I haven't completely gone through their graphics tutorials yet, but it does a pretty good job at covering all the basics, including beginner programming fundamentals for anyone who might be learning it as a first language.
http://docs.oracle.com/javase/tutorial/
If you do decide to purchase a book, I have heard good things about the following:
http://www.amazon.com/Java-How-to-Program/dp/0273759760/

Java Book or Website (like Cplusplus.com) for C++ programmers to learn java very fast [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am looking for a book which teaches Java very fast. Basically I am a C++ programmer and do not need to know each and every aspect of programming. I am learning java for android apps development. A lot of books like thinking in Java, learning java and others suggested are pretty big and I want something small to get me going.
A website like http://www.cplusplus.com/doc/tutorial/ for java also can be helpful. please answer ASAP.
I love to think of the javadoc as the equivalent of cplusplus.com. The comments on standard classes are much more detailed than stl comments are (and the code is a lot easier to read, too)
Personally I'd recommend just reading a tiny bit of literature and then using an IDE that provides really quick access to code and comments for any callable method (almost all do if you link sources and javadoc). Usually they provide greate usage exmaples and the code itself teaches best practices and proper design.
Unlinke for C / C++ I don't think using an IDE is much of a problem. Javac hides everything anyway and there is not much to know about something like linking unless you use a lot of libraries and enter "jar hell". But even then there is nothing to be learned by compiling from the shell that might help.
Build scripts to use will most probably ant or maven and both are a lot more high-level than Makefiles. While I'd really recommend never to rely on an IDE for C++, I'd totally do so for java.
What about Beginning Android 3 (http://www.apress.com/9781430232971)
It has 612 Pages but it really focuses on Android development and not really on programming basics.
Check the Table of Contents on that page and you will see.
Head First Java is a great book and very easy to read and understand. It got lots of graphics to support the reading. I find it perfect for beginners.
For pure java - Thinking in java (its nicely written but quite big (+1000pages))
For Android check notepad tutorial on official android page its good for beggining http://developer.android.com/resources/tutorials/notepad/index.html

Where to start if I want to understand how compilers and programming languages are made [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Learning to write a compiler
I know this is a broad question to ask, but where could I start learning how compilers actually work, how programming languages are made, I mean not how you use Java or Ruby but how people actually are making them. I will not try to replicate these languages in any ways but I want to understand the concepts and theory behind it. So what I need is either some directions on what I should search for, or even better and more appriciated are book recommendations.
Regards,
Jonathan Nash.
You might find Lets Build a Compiler by by Jack Crenshaw an interesting introduction.
Kept very simple and focussed on building actual functionality.
Compiler Constrution by Niklaus Wirth is pretty good and available for free from the link I provided (yes, legally). It's a bit old and uses Oberon for the examples but is easy to follow.
Create Your Own Programming Language by Marc-André Cournoyer is available online for USD 40 and consists of an eBook (including exercises and solutions), source code for two example languages (one in Ruby and one in Java) and a screencast on extending the JVM based language. This is probably the most newbie-friendly introduction you can find on the topic and afterwards you should have a pretty good idea about the steps involved (tokenizing, parsing, lexing etc.) and can continue your research with the provided links. It's a bit expensive, but IMHO it's worth it.
While not primarily a learning resource, the CoffeeScript web site has a section called "Annotated Source", which is really helpful in seeing how a programming language works. CoffeeScript's author started working on it after he read the book I mentioned in the previous bullet point btw.
You could take a look at the Dragon Book:
Compilers: Principles, Techniques and Tools by Aho, Lam, Sethi and Ullman
I've greatly enjoyed Language Implementation Patterns and learned a bunch. I wish I had read it before trying to implement a DSL some years ago.

Java - How to refresh knowledge? (2 years ago)

I have my first ever interview for a Java developer role, specifically RMI, Serverlets and JDBC.
However, it has been a while (2 years) since I have done any Java coding. I am sure I still have it up there somewhere and I do remember the Java syntax
I wanted to ask how can I re-fresh everything in 2-3 days specially the OOP concepts (polymorphism, inheritance) specifically to Java?
Any links, references and tutorials appreciated.
I am new to this site and I see there is a preference for programming related questions, hope I can get away with this!
Would also appreciate those that know any Java interview questions so I can go through them and test myself.
Thanks all
I'd suggest you you test yourself, e.g. on Java Black Belt, which has a good question base grouped by categories and detailled explanations for your mistakes.
I'd also recommend (re-)reading Sun's Java Tutorial and (longer) Thinking in Java by Bruce Eckel (3rd edition is free to download).
Tutorials on RMI
Java Servlet Technology
JDBC Tutorials
OOP concepts (polymorphism, inheritance): Head First Design Patterns
Java Interview Questions
How about this. Take a certification guide. It will save you a lot of time, and give you an exercise after every chapter (might give you some interview questions). You don't need to bore you down to death by teaching yourself in a wordy way, what you might already know. The best would he Khalid's Java Certification Guide. Believe me it would be faster and more effective. Plus give you the skills for appearing in the test for real, if you like to. :)

What is the best approach for a Java developer to learn C++ [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I consider myself an experienced Java developer and am planning to get started with learning C++.
If you had same experience, i.e learn C++ after Java, I would like to hear your thoughts on what is the best approach at doing this.
[Update] "the best approach" was not well quantified. What I am looking for is to leverage my existing java knowledge and programming experience so that I can quickly ramp up on C++.
I've taught C++ to Java people, even though I learned them the other direction.
Are you comfortable with C? If not, read Kernighan and Ritchie. Many many peculiarities of C++ are explained by the desire for C++ to be a "Better C" with C's basic expression syntax.
You should get Stroustrup.
I think well of Thinking in C++ by Bruce Eckels.
I've used The C++ FAQ Book, by Cline, Lomow, and Girou; I refer to it pretty often. Marshall Cline has C++ FAQ content on his site, too.
Update
You might also look at C++ for Java Programmers. I don't know the book but it looks decent.
My proposal would be to write highly pointer-based thing, like a linked list library, BST library, etc. The code should be STL-free, similar to pure C. You should build application using such library (eg. sort algorithms?) and learn how to deal with all the pitfalls which will for sure come up, if it's your first C/C++ code.
In my opinion the most important fundamental in knowing C++ is to understand pointers and low level memory representation of classes and structures. It's like an enlightenment after which everything is simple and clear ;)
I would start with Effective C++ and More Effective C++ by Scott Meyers. These two books go over some really good best-practices for C++.
http://www.aristeia.com/books.html
Others have already specified the required books. I would like to add just couple of points to be noted: ( as background is java)
C++ doesnot provide you the Garbage
collection ( as in Java). Hence, you
must be very perticular about memory leaks. Always use delete the memory allocated on heap using new.
Try to remember the Free-Store
management in FAQ while writing
the C++ applications.
Most often in C++ you may have to
work with pointers ( missing in
Java). Learn pointers ( books
suggested by #Charlie Martin)
effectively and use them.
One you are familiar with C++, learn
the basics of STL and use
effectively. ( Book By Josuttis
and Scott Meyers)
Good luck.
I strongly disagree with learning C first, and with trying tgo learn C++ from the Effective books, excellent though they are. Instead, get hold of a copy of Accelerated C++ by Andrew Koenig and Barabra Moo - this is written by two of the original C++ development group and will teach you how to use modern C++ features.
"C++ for Java Programmers" by Mark Allen Weiss is a good intro book for seasoned Java programmers.
Andy and Charlie already gave you the books, so I will indicate the boost libraries and the Qt framework.
Boost gives you some basic functions to work with so you don't need to create everything from scratch.
Qt, as you may know, is a GUI framework, and I find it very enjoyable to use. There is a book called "C++ GUI Programming With Qt 4" that covers all the important topics to learn Qt.
This is going to sound a little funny, but you asked for the best way, not the quickest. I'd suggest you start by learning C first, before you learn C++. Kernighan and Ritchie is one of the best language books ever written. When you know C and Java, you'll be able to write good, clear programs in a sensible subset of C++ with almost no additional effort.
Learn Qt. Trust me on this; I'm both a Java and C++ developer; I can tell you Qt makes C++ language closer to Java. Don't just learn the bare-bone C++.
C++ with Qt makes you infinitely more productive. I used to combine so many different libraries (Boost, Intel's, database connectors, etc..) just to achieve the kind of stuff we do (high-performance/real-time computing). At the end, I found that more than 80% of what I need is already included in Qt.
Not to mention, imo, Qt has the best documentation on any framework/library I've worked on, which makes it very easy to just learn everything on your own.
Try it, and see for yourself.
Disclaimer: I'm just a developer--I dont work for Nokia. =p
K&R and Stroustrup are classics, and eventually you should get them, but I don't think they are good introduction for C++ beginners. Thinking in modern C++ is thinking in classes, templates, exceptions, and streams, none of which available in C language.
I would recommend a college-level textbook on C++ like Deitel and Deitel.
After playing around, you should focus on learning to write a class that behaves like a built-in class. That means providing a copy constructor, operator=, operator==, operator<<, etc.. Along the way you'll meet various concepts embedded in the language of C++. I would agree with others on Effective C++ is a must read once you are comfortable with the basics.

Categories

Resources