-
Recent Posts
- Where do you define your data in a program if the data is passed to the program from a Caller program?
- What is the default, passing BY REFERENCE or passing BY CONTENT or passing BY VALUE?
- What does passing BY CONTENT mean?
- Name the divisions in a COBOL program ?
- what’s the error code for Unique Index Voilation:
Categories
Find By Date
May 2013 M T W T F S S « Jul 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Recent Comments
- Kamalesh on Is there a COM Bridge that lets Windows developers create native client applications that access Enterprise JavaBeansTM (EJBTM) components deployed on a J2EE App server?
- swapnil on What is the difference between error and an exception?
- just intim on New Code-Behind Model in ASP.NET 2.0?
- Jacie on How to change the data type of an existing column with “ALTER TABLE” statements in MS SQL Server?
- Geralynn on What is Dirty Read ?
Archives
Tags
.net Asp.net automated testing beans c#.net cics COBOL CSS Database db2 Design pattern differences EJB General SQL Hibernate HR Hr Question Html HTML & CSS J2EE Java java script JCL JNI jsf load runner Mainframes manual testing Microsoft SQL Server Microsoft SQL Server 2008 My SQL Oracle DBA Selenium servlets silk test Software Testing spring tesing Test Director testing Vb.net vsam wcf win runner wpf
Archive for the Category: Java
What is a Java package and how is it used?
A Java package is a naming context for classes and interfaces. A package is used to create a separate name space for groups of classes and interfaces. Packages are also used to organize related classes and interfaces into a single API unit and to control accessibility to these classes and interfaces.
Tagged Java, Java package
Comments Off
What is difference between Path and Classpath?
Path and Classpath are operating system level environment variales. Path is used define where the system can find the executables(.exe) files and classpath is used to specify the location .class files.
Are JVM’s platform independent?
JVM’s are not platform independent. JVM’s are platform specific run time implementation provided by the vendor.
Tagged Java, JVM's platform
Comments Off
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.
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.
Can I have multiple main methods in the same class?
No the program fails to compile. The compiler says that the main method is already defined in the class.
Can you write a Java class that could be used both as an applet as well as an application?
Yes. Add a main() method to the applet.
How can I share data between two different web applications?
Different servlets may share data within one application via ServletContext. If you have a compelling to put the servlets in different applications, you may wanna consider using EJBs.
Tagged Java, servlets
Leave a comment
What is the difference between static variables and instance variables in a servlet?
According to the Java Language definition, a static variable is shared among all instances of a class, where a non-static variable — also called an instance variable — is specific to a single instance of that class. According to the Servlet specification, a servlet that does not declare SingleThreadModel usually has one and only one [...]
Tagged Java, servlets
Leave a comment
How can I return a readily available (static) HTML page to the user instead of generating it in the servlet?
To solve your problem, you can either send a “Redirect” back to the client or use a RequestDispatcher and forward your request to another page: Redirect: A redirection is made using the HttpServletResponse object: if(condition) { response.sendRedirect(“page1.html”); } else { response.sendRedirect(“page2.html”); } RequestDispatcher: A request dispatcher can be obtained through the ServletContext. It [...]