Posts

Tell Me about yourself

Myself Sawan Kumar. I completed my BTech from Maharshi Dayanand University in 2013. I have 5-year experience in Java and in my career starting I worked on the Desktop application using Swing. And after that I switched on Web application where I worked on JSP, Servlet then Struts2. Struts2 with Hibernate and currently I was working on Spring MVC, AngularJS with Hibernate. My recent project was to build MIS portal for NE Centers of NIELIT in which informations like financial, civil and training details added by all 18 centers by which we generate a report. Then we analyze the performance of that particular center. And allocate proposed appropriate fund to that center from MeitY. Meanwhile, I made two Java libraries one is for file uploading in Java and another one is web scrapping. gojfileupload: Request page ArrayList<String> imagename = new ArrayList<String>(); imagename.add("img1"); imagename.add("img2"); ArrayList<Stri

Java Interview Question Part 2

Image
Q. Different access modifier in java? A.  A  private  member is  only  accessible within the same class as it is declared. A member with default  ( no access modifier)  is only accessible within classes in the same package. A  protected  member is accessible within all classes in the same package  and  within subclasses in other packages. A  public  member is accessible to all classes. The  protected access modifier  is accessible within the package and outside the package but through inheritance only. Q. @Service and @Component A.  For more annotation:   https://springframework.guru/spring-framework-annotations/ @Service This annotation is used on a class. The  @ Service  marks a Java class that performs some service, such as execute business logic, perform calculations and call external APIs. This annotation is a specialized form of the @ Component  annotation intended to be used in the service layer. @Component This annotation is used in classes to in