Tuesday, September 24, 2013

HTML Interview Questions | freejavaguide.com

1. How do I indent the first line in my paragraphs?
This isn't really possible in a reliable way, until style sheets are more widely supported. At this moment, there are several browser-specific kludges and tricks available, but these are not guaranteed to work.

1) Use a number of   ( ) characters. Netscape and related browsers do not collapse these, like normal spaces, so this appears as an indent in these browsers. Other browsers can display it as one space.

2) Put a <DD> at the beginning of the line. This is syntactically invalid, but Netscape works around this by indenting the line at this ball. Of course, other browsers will handle this differently, and there is no guarantee that Netscape will keep doing this.

Extensible Markup Language XML Tutorial

The basic syntax for one element in XML is

<name attribute="value">content</name>

Here is an example of a simple recipe expressed using XML:

<?xml version="1.0" encoding="UTF-8"?>
<recipe name="bread" prep_time="5 mins" cook_time="3 hours">
<title>Basic bread</title>
<ingredient amount="3" unit="cups">Flour</ingredient>
<ingredient amount="0.25" unit="ounce">Yeast</ingredient>
<ingredient amount="1.5" unit="cups" state="warm">Water</ingredient>
<ingredient amount="1" unit="teaspoon">Salt</ingredient>
<instructions>
<step>Mix all ingredients together, and knead thoroughly.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Knead again, place in a tin, and then bake in the oven.</step>
</instructions>
</recipe>

Core Java - Interview Questions and Answers

1. What is the most important feature of Java?
Java is a platform independent language.
2. What do you mean by platform independence?
Platform independence means that we can write and compile the java code in one platform (eg Windows) and can execute the class in any other supported platform eg (Linux,Solaris,etc).
3. What is a JVM?
JVM is Java Virtual Machine which is a run time environment for the compiled java class files.
4. Are JVM's platform independent?
JVM's are not platform independent. JVM's are platform specific run time implementation provided by the vendor.
5. What is the difference between a JDK and a JVM?
JDK is Java Development Kit which is for development purpose and it includes execution environment also. But JVM is purely a run time environment and hence you will not be able to compile your source files using a JVM.
6. What is a pointer and does Java support pointers?
Pointer is a reference handle to a memory location. Improper handling of pointers leads to memory leaks and reliability issues hence Java doesn't support the usage of pointers.

Wednesday, September 18, 2013

Personal interview questions and answers

What was your biggest mistake?


There’s nothing wrong in admitting a mistake. A human being is bound to commit mistakes. This time it is advantageous to go back as far as possible in the past and find an answer.

The advantage of doing this is that a youngster is expected to commit more mistakes than a mature and seasoned person. This would give an impression that since that time you have committed mistakes but not that big.

Take the word “mistake” as liberally as possible and go back to your student life to answer this question. Probably you can say, if I could go back to my student life, I would have studied Biology instead of Math.

Monday, September 16, 2013

Interview Question & Answer: Discussing salary and salary expectations

  1. Tell me about yourself?
  2. What is your current job?
  3. What are your responsibilities in your current job?
  4. Why do you want this job?
  5. Why do you think that you would be the best candidate for this job?
  6. What is the most important thing for you in a job?
  7. What is your greatest strength?
  8. What are your greatest weaknesses?
  9. What do you know about this company?
  10. Why should we hire you?

Top 20 Interview Questions Wid Answers

1) Tell me something about yourself?

I am a person with strong interpersonal skills and have the ability to get along well with people. I enjoy challenges and looking for creative solutions to problems.
OR
Besides the details given in my resume, I believe in character values, vision and action. I am quick in learning from mistakes. I am confident that the various tests that you have conducted will corroborate my competencies aptitude and right attitude for the job.

2) What do you seek from a job?

I would like a job which gives me a chance to apply all that I have learned in college as well as one which enables me to grow as a professional. I would like a role which enables me to make a difference.
OR
Great learning opportunities, challenging roles, rational career progression, good job satisfaction and opportunities to use my strength organization that gives me the opportunity to serve the organization and the society.

Wednesday, September 11, 2013

Sun Java Certification SCJP

2. Importing packages doesn't recursively import sub-packages.

3. Sub-packages are really different packages, happen to live within an enclosing package. Classes in sub-packages cannot access classes in enclosing package with default access.

4. Comments can appear anywhere. Can't be nested. No matter what type of comments.

5. At most one public class definition per file. This class name should match the file name. If there are more than one public class definitions, compiler will accept the class with the file's name and give an error at the line where the other class is defined.