Server-Side Includes allows embedding servlets within HTML pages using a special servlet tag. In many servlets that support servlets, a page can be processed by the server to include output from servlets at certain points inside the HTML page. This is accomplished using a special internal SSINCLUDE, which processes the servlet tags. SSINCLUDE servlet will be invoked whenever a file with an. shtml extension is requested. So HTML files that include server-side includes must be stored with a .shtml extension.
Monday, 19 March 2012
Platform Independent-Java
Why Java Is Platform Independent?
There are two tools which is for compliling and running java programs:
javac - it is compiler which converst java source code to byte code ie.class file. This byte code is standard for all platforms, machines or operating systems.
java - this is interpreter. this interprets the .class file based on a particular platform and excutes them.
jvm -> java virtual machine comes into play. jvm for windows will be different from jvm for solarais or linux . but all the jvm take the same byte code and executes them in that platform.
Source code -> javac ->Universal byte code
Universal byte ->jvm/java -> execute them on a particular machine.
There can be any number of jvm's but they all understand the one common language called byte code and translates them into the binary executable of a particular platform for which they are developed. There is separate development section in sun microsystems is to develop the jvm f or a particular platform.
for each upgrade of the jdk , the jvm for each platform is updated.
Sunday, 18 March 2012
15 questions banned by Google
Google has been known to be among those companies that have an exhaustive process of interviewing, but this is a class apart. All of us may have often wondered what did the questions we were asked in a job interview had to do with our suitability to the role we were being interviewed for. But Google has woken up to this HR epidemic and slowly weeded out absurdities being asked, according to a report quoting a former Google recruiter.
Below are the 15 questions banned by Google:
- How many golf balls can fit in a school bus?
- How much should you charge to wash all the windows in Seattle?
- In a country in which people only want boys every family continues to have children until they have a boy. If they have a girl, they have another child. If they have a boy, they stop. What is the proportion of boys to girls in the country?
- Design an evacuation plan for San Francisco
- Why are manhole covers round?
- How many piano tuners are there in the entire world?
- How many times a day does a clock's hands overlap?
- Explain the significance of "dead beef"
- A man pushed his car to a hotel and lost his fortune. What happened?
- You need to check that your friend, Bob, has your correct phone number, but you cannot ask him directly. You must write the question on a card which and give it to Eve who will take the card to Bob and return the answer to you. What must you write on the card, besides the question, to ensure Bob can encode the message so that Eve cannot read your phone number?
- You're the captain of a pirate ship and your crew gets to vote on how the gold is divided up. If fewer than half of the pirates agree with you, you die. How do you recommend apportioning the gold in such a way that you get a good share of the booty, but still survive?
- You have eight balls all of the same size 7 of them weigh the same, and one of them weighs slightly more. How can you find the ball that is heavier by using a balance and only two weighing?
- You are given 2 eggs, if you have access to a 100-story building. Eggs can be very hard or very fragile means it may break if dropped from the first floor or may not even break if dropped from 100th floor. Both eggs are identical. You need to figure out the highest floor of a 100-story building an egg can be dropped without breaking. The question is how many drops you need to make. You are allowed to break 2 eggs in the process.
- Explain a database in three sentences to your eight-year-old nephew.
- You are shrunk to the height of a nickel and your mass is proportionally reduced so as to maintain your original density. You are then thrown into an empty glass blender. The blades will start moving in 60 seconds. What do you do?