Home  |  Most Popular  |  All Feeds  |  Submit Feed

Search  

A Dude's Journal  
Released:  11/20/2006 10:37:39 PM  
RSS Link:  http://dudechandan.wordpress.com/feed/  
Last View 8/20/2008 9:09:36 AM  
Last Refresh 8/21/2008 1:44:09 PM  
Page Views 431  
Comments:  Read user comments (0)  
Report violation Report a violation or adult content
Save It Add to Technorati Add to Del.icio.us Add to Furl Add to Yahoo My Web 2.0 Add to My MSN Add to Google Add to My Yahoo! A Dude's Journal  



Description:



Usual Blog Of An Unusual Guy


Contents:

Introduction To Java

Like any human language, Java provides a way to express concepts. If successful, this medium of expression will be significantly easier and more flexible than the alternatives as problems grow larger and more complex.

You can’t look at Java as just a collection of features - some of the features make no sense in isolation. You can use the sum of the parts only if you are thinking about design, not simply coding. And to understand Java in this way, you must understand the problems with it and with programming in general. This tutorial discusses programming problems, why they are problems, and the approach Java has taken to solve them.

Prerequisites:
This tutorial assumes that you have some programming familiarity. Of course, the book will be easier for the C programmers and more so for the C++ programmers. I’ll be introducing the concepts of object-oriented programming (OOP) and Java’s basic control mechanisms.

Chapters:
Here is a brief description of the chapters contained in the tutorial.

Chapter 1: Introduction to Objects
This chapter is an overview of what object-oriented programming is all about, including the answer to the basic question “What’s an object?”, interface vs. implementation, abstraction and encapsulation, messages and functions, inheritance and composition, and the all-important polymorphism. You’ll also get an overview of issues of object creation such as constructors, where the objects live, where to put them once they’re created, and the magical garbage collector that cleans up the objects that are no longer needed.

Chapter 2: Everything is an Object
This chapter moves you to the point where you can write your first Java program, so it must give an overview of the essentials, including the concept of a reference to an object; how to create an object; an introduction to primitive types and arrays; scoping and the way objects are destroyed by the garbage collector; how everything in Java is a new data type (class) and how to create your own classes; functions, arguments, and return values; name visibility and using components from other libraries; the static keyword; and comments and embedded documentation.

Chapter 3: Controlling Program Flow
This chapter begins with all of the operators that come to Java from C and C++. In addition, you’ll discover common operator pitfalls, casting, promotion, and precedence. This is followed by the basic control-flow and selection operations that you get with virtually any programming language: choice with if-else; looping with for and while; quitting a loop with break and continue as well as Java’s labeled break and labeled continue (which account for the “missing goto” in Java); and selection using switch. Although much of this material has common threads with C and C++ code, there are some differences.

Chapter 4: Initialization & Cleanup
This chapter begins by introducing the constructor, which guarantees proper initialization. The definition of the constructor leads into the concept of function overloading (since you might want several constructors). This is followed by a discussion of the process of cleanup, which is not always as simple as it seems. Normally, you just drop an object when you’re done with it and the garbage collector eventually comes along and releases the memory. This portion explores the garbage collector and some of its idiosyncrasies. The chapter concludes with a closer look at how things are initialized: automatic member initialization, specifying member initialization, the order of initialization, static initialization and array initialization.

Chapter 5: Hiding the Implementation
This chapter covers the way that code is packaged together, and why some parts of a library are exposed while other parts are hidden. It begins by looking at the package and import keywords, which perform file-level packaging and allow you to build libraries of classes. It then examines subject of directory paths and file names. The remainder of the chapter looks at the public, private, and protected keywords, the concept of “friendly” access, and what the different levels of access control mean when used in various contexts.

Chapter 6: Reusing Classes
The concept of inheritance is standard in virtually all OOP languages. It’s a way to take an existing class and add to its functionality (as well as change it, the subject of Chapter 7). Inheritance is often a way to reuse code by leaving the “base class” the same, and just patching things here and there to produce what you want. However, inheritance isn’t the only way to make new classes from existing ones. You can also embed an object inside your new class with composition. In this chapter you’ll learn about these two ways to reuse code in Java, and how to apply them.

Chapter 7: Polymorphism
On your own, you might take nine months to discover and understand polymorphism, a cornerstone of OOP. Through small, simple examples you’ll see how to create a family of types with inheritance and manipulate objects in that family through their common base class. Java’s polymorphism allows you to treat all objects in this family generically, which means the bulk of your code doesn’t rely on specific type information. This makes your programs extensible, so building programs and code maintenance is easier and cheaper.

Chapter 8: Interfaces & Inner Classes
Java provides a third way to set up a reuse relationship, through the interface, which is a pure abstraction of the interface of an object. The interface is more than just an abstract class taken to the extreme, since it allows you to perform a variation on C++’s “multiple inheritance,” by creating a class that can be upcast to more than one base type. At first, inner classes look like a simple code hiding mechanism: you place classes inside other classes. You’ll learn, however, that the inner class does more than that—it knows about and can communicate with the surrounding class—and that the kind of code you can write with inner classes is more elegant and clear, although it is a new concept to most and takes some time to become comfortable with design using inner classes.

Chapter 9: Holding your Objects
It’s a fairly simple program that has only a fixed quantity of objects with known lifetimes. In general, your programs will always be creating new objects at a variety of times that will be known only while the program is running. In addition, you won’t know until run-time the quantity or even the exact type of the objects you need. To solve the general programming problem, you need to create any number of objects, anytime, anywhere. This chapter explores in depth the container library that Java 2 supplies to hold objects while you’re working with them: the simple arrays and more sophisticated containers (data structures) such as ArrayList and HashMap

Chapter 10: Error Handling with Exceptions
The basic philosophy of Java is that badly-formed code will not be run. As much as possible, the compiler catches problems, but sometimes the problems—either programmer error or a natural error condition that occurs as part of the normal execution of the program—can be detected and dealt with only at run-time. Java has exception handling to deal with any problems that arise while the program is running. This chapter examines how the keywords try, catch, throw, throws, and finally work in Java; when you should throw exceptions and what to do when you catch them.

Chapter 11: The Java I/O System
Theoretically, you can divide any program into three parts: input, process, and output. This implies that I/O (input/output) is an important part of the equation. In this chapter you’ll learn about the different classes that Java provides for reading and writing files, blocks of memory, and the console. The distinction between “old” I/O and “new” Java I/O will be shown

Chapter 12: Run-Time Type Identification
Java run-time type identification (RTTI) lets you find the exact type of an object when you have a reference to only the base type. Normally, you’ll want to intentionally ignore the exact type of an object and let Java’s dynamic binding mechanism (polymorphism) implement the correct behavior for that type. But occasionally it is very helpful to know the exact type of an object for which you have only a base reference. Often this information allows you to perform a special-case operation more efficiently. This chapter explains what RTTI is for, how to use it, and how to get rid of it when it doesn’t belong there.

Chapter 13: Creating Windows and Applets
Java comes with the “Swing” GUI library, which is a set of classes that handle windowing in a portable fashion. These windowed programs can either be applets or stand-alone applications. This chapter is an introduction to Swing and the creation of World Wide Web applets. The important “JavaBeans” technology is introduced.

Chapter 14: Multiple Threads
Java provides a built-in facility to support multiple concurrent subtasks, called threads, running within a single program. Although these can be used anywhere, threads are most apparent when trying to create a responsive user interface so, for example, a user isn’t prevented from pressing a button or entering data while some processing is going on. This chapter looks at the syntax and semantics of multithreading in Java.

Chapter 15: Distributed Computing
All the Java features and libraries seem to really come together when you start writing programs to work across networks. This chapter explores communication across networks and the Internet, and the classes that Java provides to make this easier. It introduces the very important concepts of Servlets and JSPs (for server-side programming), along with Java DataBase Connectivity (JDBC), and Remote Method Invocation (RMI). Finally, there’s an introduction to the new technologies of JINI, JavaSpaces, and Enterprise JavaBeans (EJBs).




12 Steps To Get A Promotion

Climbing the corporate ladder requires hard work, good timing and a little bit of luck. It would be great if your academic credentials, job skills and performance reviews would magically open the doors to the executive suite, but life’s not like that. You need to create and execute your own plan.

Here are some tips to help you land that promotion.

1. Master your current job
Even if you’re not interested in making your present position your life’s work, give it your very best. Keep track of your accomplishments. Find ways to increase productivity. Offer well-researched suggestions that will reduce costs. Accept constructive criticism. Always be prepared to deal with any situation without becoming defensive, blaming others or blowing your professional image.

2. Volunteer to take on (valuable) extra tasks
Plan your strategy. Sometimes it’s better to take on a series of smaller tasks instead of a flashy major project in addition to your regular workload. While others are vying for the more visible responsibilities, you’ll be proving your worth and value by efficiently taking care of the less coveted ones.

3. Make your boss look good
Even if you do not particularly like your current manager, make it your goal to ensure the department is successful. When your boss gets promoted, someone has to take his place. Why shouldn’t it be you? When you’re seen as knowledgeable, skilled and interested, you’ll be considered promotable. Just don’t be a brownnoser or tie yourself too closely to your boss. If he’s fired for incompetence, you don’t want to be guilty by association.

4. Stay in close contact with the HR department
Making friends with people in personnel will help you find out quickly about upcoming openings. Your human resources department can also advise you of available training opportunities. Let it be known that you have long-term goals with the company. When decisions are being made for career development opportunities, you want to be on the HR short list.

5. Maintain positive relationships with the staff
You’re not going to like everyone you work with, but no one else needs to know it. Be polite, considerate and courteous at all times. Be a team player and share accolades with others. By acknowledging the efforts of other employees, you’ll earn their trust and respect. And watch your reputation: Keep your personal relationships private and don’t do or say anything you might regret in the office, on business trips or at company functions.

6. Let your leadership skills shined
Every rung on the corporate ladder requires a strong image as a natural leader. Offer encouragement to others in the office, recognize special achievements and, on occasion, organize office outings. Getting the staff together for a beer after work is a great team-building tool.

7. Groom a successor
If you’re the only one who can do your job, guess what? You’ll be doing it forever. Share your knowledge and skills. When you’re going on vacation, ask other people to handle aspects of your job and teach them how to do them well.

8. Get a mentor
Find someone you trust, preferably a senior manager or director with a lot of experience and a large network. Ask for advice. Discuss your career goals with him and plan your strategy. Sometimes you need to take a lateral transfer to gain a different type of skill in order to return to your preferred area in a higher position of authority.

9. Take additional training
No matter what your educational background is, there’s always more you could learn. Look into night courses, seminars and workshops, and ask your mentor and your boss if they would add value to the company. Read business publications and books. Sign up for online informational newsletters. Stay up-to-date on your industry as a whole, not just your job.

10. Look presentable at all times
It’s difficult to see vice president-potential in someone who constantly dresses down. If khakis and polo shirts are the standard in your office, make sure yours are clean, well-pressed and of good quality. Have a sports jacket handy in case you’re called to an important meeting in the executive offices. Keep your hair stylish and your shoes polished.

11. Perfect your elevator pitch
You never know when opportunity will knock. If you meet the CEO, introduce yourself in a way that will leave him wanting to learn more about you. When networking or meeting clients, you want them to remember you for the right reasons. Never brag and don’t be pushy. Ambition is an admirable trait unless you’re perceived as being an egotistical showoff.

12. Watch your timing
It’s usually better not to ask for a promotion. Avoid bringing this up when your boss is obviously stressed and has a strict deadline to meet. Choose the time wisely and let it be known that you feel ready to take on additional responsibilities. Try not to show you are in a rush for a raise and a new title. Be patient.

Promotions don’t just happen
You cannot expect to be offered a promotion based solely on merit, potential or seniority, and there will be times when someone seemingly less qualified is offered a position you feel you deserve. Don’t quit in a childish huff or you’ll prove that you weren’t the right person for the job. Hang in there and continue following these tips. An even better position may become available or the incumbent will fail miserably and you’ll be promoted to replace him.

Remain focused on your long-term career goals. Show off those skills, teach someone your position and always look good Maintain your integrity, your confidence and your efforts, and you’ll get yourself promoted.




Ace A Job Interview

An important step in every person’s professional life is the interview for the much anticipated position. People prepare for this moment their whole life, yet many things still go wrong. Here are some key interview tips to remember to have a successful interview, you must have the right type of preparation, and be able to keep a cool mind.


Preparation:
All of the interview tips you will learn about, this is probably the most important part of the whole process, because with good preparation, everything should go as planned. This should be the case, at least in theory. Before getting to the interview, conduct some research to know some basic information about the company , like its mission statement and its position in the industry. This will allow you to intelligently answer questions that might suddenly be thrown your way during the interview session.

This research should also include specific job related issues and requirements. Applicants don’t want to be faced with a tricky question often asked by interviewers, catching the applicant off guard. A good technique is to look at oneself in the mirror and go through the procedure of an interview. Portraying confidence and assertiveness are surely the most important parts of an interview. The interviewer wants to see that the applicant is sure of himself, and that his high confidence is a reflection of his abilities.

Looks That Matter:
Using the same concept as when preparing a resume, your appearance will play a key role in presenting a good image of yourself. We wouldn’t expect an employer to be wearing running shoes and jeans, so why should we ? Dress appropriately for the position. Office and administrative jobs require, without a doubt, a suit and tie appearance. Be wary of overdressing for the interview, but remember, it’s better to be overdressed than underdressed.

Body Language:
There are three main things to do when entering the interview room and first meeting a human resources person:

  1. Present yourself by clearly stating your name.
  2. Make direct eye contact with the interviewer.
  3. Give a firm handshake. A trick to avoid having sweaty palms when giving a handshake is to carry a tissue in your pocket to dry your hand right before the handshake.

Before moving on, there are implicit signs interviewers are trained to look out for during an interview session. Interviewers are usually trained observers of the slightest details, which can say more than what is actually said by the applicant.

  • Constantly moving hands will usually represent nervousness. Keep them on the table, or on your knees.
  • Sit up straight and don`t slouch. Sitting up portrays confidence and savoir faire.
  • Unintentional nervous ticks are clearly noticeable by interviewers, but might not be to the applicant. Be careful not to tap the table, touch your face constantly, or stutter when answering questions.

Typical Questions:
Every interview contains a series of questions tailored for that specific interview, however, many of them actually include a set of generic questions that might be posed by the interviewer. Here is an exhaustive list to give you an idea of the types of questions that might be put forth in conversation, during an interview. The key is to answer the questions sincerely, while using a rich vocabulary.

  • What experience do you have for the position?


  • Home  
 
 



Home | Submit Feed | Feed Map | New Feeds | Convert Atom2RSS | Golden RSS Feed | Trackbacks | Contact Us

Copyright 2006 goldenfeed.com
Created by Primary Objects