Java J2EE Interview Questions
Questions Answers Views Company eMail

Accenture NJ mostly ask question on Collection like 1)How to sort Objcts and how treeset sort them 2)Explain mechanism of Hashcode finding in Java 3)Name some of the Sorted collection.

Accenture,

2 7270

could you run the java program without main method?

6 13936

My interview asked what is dynamic variable in java and where we use them.

IBM,

2 6460

How we store procedure in oralce for callable statements in jdbc

1852

what are the new features of Webservices 1.6 than 1.4.From the interface and implementation aspect4.

1744

"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.

2 6829

Can I create any Marker Interface? If yes then how can I use it???

4 10207

Give me some example for getting connection from connection pooling in JBoss Server. Is Connection Pool default in Server or we have to create it? Who can create Connection Pool in a Team. How it will be accessed by the developer code?

TCS,

1 4041

how can we load a file of a user in the database table?

ITC Infotech,

3 4845

java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDr iver? I get this error at run time.I used oracle10G. I set CLASS PATH:C:\oraclexe\app\oracle\product\10.2.0 \server\jdbc\lib\ojdbc14.jar; I write JDBC PROGRAM like import java.sql.*; class Example { public static void main(String args[]) { try { Class.forName ("oracle.jdbc.driver.OracleDriver"); System.out.println("Driver Loaded"); Connection con=DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:xe","system","salmas"); System.out.println("Driver Connected"); Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select * from emp"); while(rs.next()) { System.out.println(rs.getInt(1)); System.out.println(rs.getString(2)); System.out.println(rs.getString(3)); } st.close(); con.close(); } catch(Exception e) { System.out.println(e); } finally { System.out.println("it's finally block executed"); } } }

CTS,

6 22995

Possible ways for debugging java ,javascript,jsp and servlet. Can we use System.out.println debugging java.

2 4647

please send code example of inner classes?

2 4646

how team leaders assign work for the team member like through papers,word document

TCS,

1 4951

what is the use of clone method? why user cant overwrite in sub class without its proper defination.

TCS,

2 5404

what is object deep copy and shallow copy and why it is required?

2 8067


Un-Answered Questions { Java J2EE }

What is cascade persist?

182


What is java swing gui?

474


What is mean by connection pooling?

547


What is the flow of spring mvc?

147


What is a buffer in computer?

513






What is spring boot starter tomcat? : Spring Boot

177


Why is java more secure?

484


Explain annotation-based (@aspectj based) aspect implementation?

167


What is a void method?

517


What are the modules of j2ee?

508


How to make a write-only class in java?

579


How can we call stored procedure in hibernate using named query?

133


Can you add null to a list java?

585


How can we find the actual size of an object on the heap?

804


What is the purpose of the enableevents() method?

585