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 7270what 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 6829Give 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 4041java.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 22995Possible ways for debugging java ,javascript,jsp and servlet. Can we use System.out.println debugging java.
2 4647what is the use of clone method? why user cant overwrite in sub class without its proper defination.
TCS,
2 5404
What is cascade persist?
What is java swing gui?
What is mean by connection pooling?
What is the flow of spring mvc?
What is a buffer in computer?
What is spring boot starter tomcat? : Spring Boot
Why is java more secure?
Explain annotation-based (@aspectj based) aspect implementation?
What is a void method?
What are the modules of j2ee?
How to make a write-only class in java?
How can we call stored procedure in hibernate using named query?
Can you add null to a list java?
How can we find the actual size of an object on the heap?
What is the purpose of the enableevents() method?