This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes system.log question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "system.log question" Watch "system.log question" New topic
Author

system.log question

soumik paul
Greenhorn

Joined: Jan 14, 2013
Posts: 5
I was preparing for a technical interview and so I came across a question for which i could not find the answer. I am sure it will have a very simple answer but since I was not familiar with the language I was unable to evaluate it. If you could also explain the operation it would be helpful. The code is as follows:

var a="3";
var b=2;
var c=1;

(The next part is something which I do not remember perfectly. It was either System or console....)

System/Console.Log(a+b+c);


The question was to find the output.


Thanking You
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63195
    
  69

That's all JavaScript. It has nothing at all to do with Servlets.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
soumik paul
Greenhorn

Joined: Jan 14, 2013
Posts: 5
Ok sorry my mistake completely. I will post it in the java scripts threads.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: system.log question
 
It's not a secret anymore!