- How many ways can we create object?
5 Ways we can create object in java
i)using new keyword
Test t = new Test();
ii) using clone method
Test t = new test();
Test t2 = (Test) t.clone();
iii)Class.ForName();
Class c = Class.forName("nameOfTheClass");
Test t = c.newInstance();
iv)Desensitization concept
FileInpputStream f = new FileInputStream("filepath");
ObjectInputStream o = new ObjectInputStream(f);
Object o = (Test) o.readObject();
V) Using newInstance() method of constructor
Constroctor<Test> c = Test.class.getDeclaredConstrocter();
Test t = c.newInstance();
i)using new keyword
Test t = new Test();
ii) using clone method
Test t = new test();
Test t2 = (Test) t.clone();
iii)Class.ForName();
Class c = Class.forName("nameOfTheClass");
Test t = c.newInstance();
iv)Desensitization concept
FileInpputStream f = new FileInputStream("filepath");
ObjectInputStream o = new ObjectInputStream(f);
Object o = (Test) o.readObject();
V) Using newInstance() method of constructor
Constroctor<Test> c = Test.class.getDeclaredConstrocter();
Test t = c.newInstance();
- Methods in object class?
- Implementation of contact list in mobile and searching algorithm?
- Which one is good to implement array list or HashMap and why?
- Write down deep cloning program.
- How to secure the RESTFUL webservices?
- Find the defect coin out of 72 coins in minimum steps using weighing scale.
- Write the program to find the max two product of a array with least time complexity. { 1,2,46,64,,43,3} output-> 64*43.
- Write a program to find the circular HashMap.
- How many ways we can send data from client?
- I want to send data as json format by GET request.How can I do?
- In how many ways I can send data in RESTFUL?
- How will u handle content of data send by client when u dony know which type of data client will send?
- I wanna build application without any xml file in spring fw ,how can I do?
- If I don’t wanna use xml then what are the ways to configure DispatcherServlet,Controller,HandlerMapping,View Reslver?
- What is path parameter & query parameter & matrix parameter? If I wanna send 2 query parameter in same url on different path segment then how u will do?
- How will u do form handling data in RESTFUL?
- Difference between spring 4 & 3
- What is dfference between @Path ,@RequestMapping()?
- In RESTFUL IF I don’t wanna configure the ServletContainer in web.xml then what are the other options we can use?
- What is IOC container?
- What is setter & constructor injection? How will u implement it in ur spring application?
- Like RESTFUL we have @Path for handling the request ,if we create a servlet application then we can use @WebServlet for handling request uri, so can I call servlet also as RESTFUL?
- WHAT IS bean lifecycle?
- What is beanpostprocessor?
- What all types of hamdler mapping & use cases?
- What types ofview resolver, controller & use cases?
- Spring mvc flow?
- How many approaches we have for using spring JDBC?
- HOW TO USE SPRING with Hibernate application?do spring provide hibernate related stuff for integrating it?
- Java 8 features?
- Concurrent collection?
- Executor framework?
- If I wanna use 2 databases at the same time in spring then what should I do?
- Difference between jdbc,hibernate?
- Pls write hibernate configuration file for MSSQL server database?
- What is DIALECT in hibernate?
- What is use of hbm2ddl.auto?
- What is SESSIONFACTORY in hibernate?
- How to use 2 database in hibernate in same congiguration? Is it possible? If not then how to implement it?
- If we don’t wanna configuration file in hibernate then how can we implwmnet hibernate ?
- What is mapping file in hibernate ?
- What are the annotation u used in hibernate ?
- What are inheritance mapping in hibernate?
- What is relationship in hibernate
- What is difference between get & load?
- Difference between save & persist?
- Difference between update & merge?
- What is criteria in hibernate?
- What is named query in hibernate?
- What is hql in hibernate ?
- Write hql for selecting all record from employee table
- Write hql for selecting id,name from employee table?