Java basic questions

1.throw Vs. throws clause?

2.Use of EJBs?

3.Design Patterns avail in Java?

4.Different ways of achieving Exceptions in Java?

5.Can we handle Run Time Exceptions?

6.How to overcome OutOfMemoryError?

7.CompileTime Vs. Run Time Exceptions

8.MultiThreading Vs Multitasking

9.Usage of Tag Libraries in JSPs?

10.Available Tag Libraries?

Questions by sandhyatammala

Showing Answers 1 - 12 of 12 Answers

James

  • Mar 16th, 2007
 

more questions ....


1.Which memory is occupied by local N global V'bles?


2.Is there any way 2 initialize the v'bles in the class b4 creation of object 2 that class?


3.Is static V'ble acts as global v'ble?When we prefer static data?


4.Can we prefer Register V'ble in C?& Which v'bles cant be refer in C?


5.Composition N Generalization?


6.Is-A/Has-A relationship?


7.Explanation of final,finally N finalization?


8.How do we acheive Encapsulation in Java?


9.Without using console ,in which way we can enter values into Customer table which is in BackEnd?


10.Use of Exception Handling N Threading?


1.What z Asynchronous Data Communication?


2.Differences btwn Servlet N Applet?


3.Differences btwn Servlet N JSP?


4.Differences btwn Servlet N RMI?


5.Why we use Deployment Descriptors N log files?


6.Whats The use of Servers in J2EE?


7.Differences btwn Stateless Server N Stateful Server?


8.Where log files N Host files r stored?


9.Differences btwn AppliacationServer N Web Server?


10.What r the Event Driven Tools avialable in Java?


1.Servlet Vs. GenericServlet Vs. HttpServlet?


2.Web-Based Application Vs. Window-Based Application and When we prefer ?


3.What happened 2 an object under Serilazation?


4.Whats the use of Marker Interfaces in java eventhough there r no methods in the Marker interfaces?


5.Java usage over C & C++?


6.Advantages,Disadvatages of Java?


7.What class files consists of..?


8.How do U know that U get the functionality of Driver in JDBC Application?


9.What happened when creation of an object occur?


10.Is the code compile

String str="Hello";

str.append("World");

S.o.p(str);

  Was this answer useful?  Yes

fcasttro

  • Mar 22nd, 2007
 

10.Is the code compile

String str="Hello";

str.append("World");

S.o.p(str);


Answer:  Is wrong, First u have to create a object  like this

StringBuffer str = new StringBuffer();
str.append("Hello");

str.append("World");
S.o.p(str);

  Was this answer useful?  Yes

fcasttro

  • Mar 22nd, 2007
 

6.Advantages,Disadvatages of Java?

Advantages
---------------
A=>   Java is one of the first programming languages to consider security as part of  its design.
B=>   Portability: Program once, Run anywhere (Platform Independence)
C=>  Java is simple, No language is simple, but Java considered a much simpler and easy to use object-oriented programming language
D=>  Java is Multithreaded

Disadvantages
-------------------
A=>  The main disadvantage of Java is speed.

   "Compared with native code, Java VMs are excruciatingly slow. ... Java still cannot compete with natively compiled C++ code."

  Was this answer useful?  Yes

fcasttro

  • Mar 22nd, 2007
 

4.Whats the use of Marker Interfaces in java eventhough there r no methods in the Marker interfaces?

Answer :     The marker methods specifies the functionality of a class depending upon the need. For example if a method needs to be serialised then it should implement serialiazable which doesnt have any methods to define, but an indication for the JVM that this class instatiates objects which can be inserted into an byte stream

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions