SunOne Interview Questions for freshers experienced :-
1.How to handle exceptions without using try,catch,throw, and log4j?
in case of .net, if you are not using try/catch/finally/throw/log4j
- make use of Page_error method on any .aspx page to handle error on the specfic page
- in global.asax use application_error event handler
- web.config, under Error – specify what need to be done based on error code/type
2.What does a constructor does?
- Constructor is a special type of function which is available for every class.
- Constructors can be used to create a object in different forms.
- Constructors can be used to execute a statements when object is creating.
- Constructors can be used to intialized the object properties.
![SUNONE Interview Questions](https://engineeringinterviewquestions.com/wp-content/uploads/2020/04/SUNONE-Interview-Questions.png)
3.What is swing and jsp. Where we use swings and jsp?
Java Swing is technolgy which we are using to design desktop application.
- JSP is a server side technology called as Java Server Pages.
- when we need to design a application in client – server architecture where client is desktop application then we will go for swings in java, and we can use jsp on serverside.
- JSP is also used to represent the view as HTML on browser in MVC architecture.