Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML
 
 
Hot Web Programming Job

 

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML

Features

Struts Tutorials
*Stuts TOC
*Apache Struts Introduction
* Struts Controller
* Struts Action Class
* Struts ActionFrom Class
* Using Struts HTML Tags
*Struts Validator Framework    
*Client Side Address Validation    
*Struts Tiles
*tiles-defs.xml
*Struts DynaActionForm
*Struts File Upload
*Struts DataSource
*AGGREGATING ACTIONS
*Internationalization
Struts Resources
*Struts Books
*Struts Articles
*Struts Frameworks
*Struts IDE
*Struts Links
*Struts Presentations
*Struts Projects
*Struts Software
*Other Struts Tutorial
Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Have tutorials?
Add your tutorial to our Java Resource and get tons of hits.

We offer free hosting for your tutorials. and exposure for thousands of readers. drop a mail
roseindia_net@yahoo.com
 
   

 
Join For Newsletter

Powered by groups.yahoo.com
Visit Group! Post Questions!

Java Interview Questions - Page 4

                         

Question: What are synchronized methods and synchronized statements?  
Answer:
Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement.

Question: What are three ways in which a thread can enter the waiting state? 
Answer:
A thread can enter the waiting state by invoking its sleep() method, by blocking on I/O, by unsuccessfully attempting to acquire an object's lock, or by invoking an object's wait() method. It can also enter the waiting state by invoking its (deprecated) suspend() method.

Question: Can a lock be acquired on a class? 
Answer:
Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object.

Question: What's new with the stop(), suspend() and resume() methods in JDK 1.2?
Answer:
The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.

Question: What is the preferred size of a component?
Answer:
The preferred size of a component is the minimum component size that will allow the component to display normally.

Question: What method is used to specify a container's layout? 
Answer:
The setLayout() method is used to specify a container's layout.

Question: Which containers use a FlowLayout as their default layout?
Answer:
The Panel and Applet classes use the FlowLayout as their default layout.

Question: What is thread?
Answer:
A thread is an independent path of execution in a system.

Question: What is multithreading?
Answer:
Multithreading means various threads that run in a system.

Question: How does multithreading take place on a computer with a single CPU?
Answer:
The operating system's task scheduler allocates execution time to multiple tasks. By quickly switching between executing tasks, it creates the impression that tasks execute sequentially.

                         

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

11 comments so far (
post your own) View All Comments Latest 10 Comments:

As i am done project in struts can you please help me how to create the executable file in struts please help me

Posted by subash on Sunday, 11.16.08 @ 23:43pm | #81731

Sir / Mam

This is sagar iam a student of APTECH and doing a Course presently iam our topic is on Core Java and i have created small programm in Core Java using Applet, but i need help how to get .Exe file in core any suggestion pls pls pls pls make a mail to me.


Posted by Sagar on Monday, 09.8.08 @ 16:50pm | #78013

nice to have Rose india as my colleague in my job

Posted by manas on Wednesday, 08.13.08 @ 11:32am | #72610

ITis very usefull 4 computer students .i wantadvanced java 4 refernce

Posted by s.sindhu on Tuesday, 08.5.08 @ 21:09pm | #71160

hi sir
plz send me method to generate .exe file from class file or how to make any class file platefrom dependent...

sardhara ravin
9860195427

Posted by ravin on Tuesday, 01.15.08 @ 11:15am | #45239

I want to know why *.do is written in web.xml in
<url-pattern>*.do</url-pattern>

why not some *.jsp or some other thing........

Also i want to know what are the config files we will have while running in jboss...

Posted by hari on Tuesday, 05.15.07 @ 15:09pm | #15985

THE SITE IS REALLY AWESOME

Posted by ARUN on Monday, 05.14.07 @ 18:18pm | #15868

this site is very very useful to java developers and also who are facing the intervies thanks to roseindia.com thanks a lot u.

Posted by praveen on Thursday, 04.26.07 @ 18:00pm | #14982

Question: What method is used to specify a container's layout?
Answer: The setLayout() method is used to specify a container's layout.

Question: What method is used to specify a container's layout?
Answer: The setLayout() method is used to specify a container's layout.
Question: What method is used to specify a container's layout?
Answer: The setLayout() method is used to specify a container's layout.


Question: What method is used to specify a container's layout?
Answer: The setLayout() method is used to specify a container's layout.


Posted by hhhh on Tuesday, 03.13.07 @ 15:09pm | #11574

This site is very useful not only for and also somany members,which are preparing for interviews and I request u to give more information.

Posted by vijay on Thursday, 01.18.07 @ 15:35pm | #3762

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.