Core Java (6529)
Advanced Java (552)
Swing (223)
EJB (402)
Java Networking (49)
Hibernate (1009)
Spring Framework (1486)
Java J2EE AllOther (116) 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.
2 8059what are the new features of Webservices 1.6 than 1.4.From the interface and implementation aspect4.
2178"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 7710Give 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 4872java.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 25108Possible ways for debugging java ,javascript,jsp and servlet. Can we use System.out.println debugging java.
2 5641what is the use of clone method? why user cant overwrite in sub class without its proper defination.
TCS,
2 6290
What are the drawbacks of singleton class?
What if you need to span your transaction across multiple servlet invocations?
What is the difference between sessionfactory and session in hibernate?
What is the generic class?
What are the major benefits of hibernate?
Is vector ordered in java?
What is numeric data type?
How java enabled high performance?
How to access arraylist elements in java?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
How can you retrieve data from the resultset using jdbc?
What is the ==?
What is an abstract method?
Java.util.regex consists of which classes?
Why do we use bufferedreader?