Java Script
Java Script
Java Script
Q2.What is the difference between Client side JavaScript and Server side JavaScript.
Client side java script comprises the basic language and predefined objects which are relevant to running java script in a browser. The client side java script is embedded directly by in the HTML pages. This script is interpreted by the browser at run time. Server side java script also resembles like client side java script. It has relevant java script which is to run in a server. The server side java scripts are deployed only after compilation.
Q7. What is the difference between undefined value and null value?
Undefined value: A value that is not defined and has no keyword is known as undefined value. For example in the declaration, int number; the number has undefined value. Null value: A value that is explicitly specified by the key word null is known as null value. For example in the declaration, String str=null; the str has a null value. The keyword null is used here
Q16.What is JavaScript?
Java script is a scripting language used for client side scripting. Web pages can be made more interactive with java script. Java script runs on client system which does not require constant downloads from the website. Java script is suitable for designing interactive web sites. It supports some of the objects like Array, String, Object, Date etc. It enables the HTML code to interact scripting, thus enables web authors to combine the sites with dynamic content.
Q19.What is == operator?
The == operator in java script is used for determining equality of two variables or values. The expression returns true if both the values are equal.
Q28.What is Rails?
Ruby on Rails is a web application framework. It is written in Ruby. Compare to other frameworks for web application, the big deal is the way Ruby on Rails does. A web application finished in days instead of weeks, it is noticed by the community. Maintenance and/or extension of messy and hard web applications is flexible with ruby rails.
XML programming UTF-8 text processing regular expression engine make XML programming very handy in ruby. .
RUBYOPT - To add command line switches. RUBYPATH - To list the path when used with the -S switch on the command line. RUBYPATH will be added to the paths searched when looking for Ruby scripts. The paths in RUBYPATH precede the paths listed in PATH. RUBYLIB The paths list will be added to the path list of Ruby that uses for searching libraries including the program with the require method. The paths in RUBYLIB will be searched before other directories.
38.Explain the purpose of the executable files that have an extra _g at the end of their names, e.g. java_g.
java_g is a non-optimized version of java suitable for use with debuggers like jdb. When using java_g to run a program that loads a shared library, we must supply a debug version of the library. We can create a debug version of a library by simply appending "_g" to the file's name. For example, if the library was hello.dll, change the name to hello_g.dll. This file gives the debugging information
40.Explain how to access native operating system calls from my Java program.
To access native operating system calls from my Java program JNI is used. Java native Interface (JNI) is a programming framework that allows Java code to interact with code written in another language, typically C or C++. JNI enables one to write native methods to handle situations when an application cannot be written entirely in the Java programming language. It is also used to modify an existing application which is written in another programming language so that it can be accessible to Java applications. Many of the standard library classes depend on JNI to provide functionality to the developer and the user. The Java Development Kit (JDK) provides tools and library routines that help the Java programmer interface with native code. The system calls are written in C and C++ so to access these call JNI is used.
Servlets are Java technology's answer to CGI programming. They are programs that run on a Web server and build Web pages. Java servlets are more efficient, easier to use, more powerful, more portable, and cheaper than traditional CGI and than many alternative CGI-like technologies. Java Server Pages (JSP) is a technology that lets you mix regular, static HTML with dynamically-generated HTML. Many Web pages that are built by CGI programs are mostly static, with the dynamic part limited to a few small locations.