Cracking the Java Coding Interview pdfdrive com


Question What are the two important TCP Socket classes? (Networking)


Download 1.48 Mb.
Pdf ko'rish
bet129/182
Sana02.05.2023
Hajmi1.48 Mb.
#1423275
1   ...   125   126   127   128   129   130   131   132   ...   182
Bog'liq
Cracking the Java Coding Interview ( PDFDrive )

Question What are the two important TCP Socket classes? (Networking)
Answer Socket and ServerSocket. ServerSocket is used for normal two-way
socket communication. Socket class allows us to read and write through the
sockets. getInputStream() and getOutputStream() are the two methods available
in Socket class.
Question How to call a Stored Procedure from JDBC? (JDBC)
Answer The first step is to create a CallableStatement object. As with Statement
an and PreparedStatement objects, this is done with an open Connection object.
A CallableStatement object contains a call to a stored procedure.
E.g.
CallableStatement cs = con.prepareCall("{call
SHOW_SUPPLIERS}");
ResultSet rs = cs.executeQuery();
Question What are the implicit objects? (JSP)
Answer Implicit objects are
objects that are created by the web container and contain information related to a
particular request, page, or application. They are:
request response pageContext session application out config page exception
Question Is JSP technology extensible? (JSP)
Answer YES. JSP technology is
extensible through the development of custom actions, or tags, which are
encapsulated in tag libraries
Question What gives java it's "write once and run anywhere" nature?
(Core Java)
Answer Java is compiled to be a byte code which is the intermediate language


Answer Java is compiled to be a byte code which is the intermediate language
between source code and machine code. This byte code is not platorm specific
and hence can be fed to any platform. After being fed to the JVM, which is
specific to a particular operating system, the code platform specific machine
code is generated thus making java platform independent.
Question What are the four corner stones of OOP ? (Core Java)
Answer
Abstraction, Encapsulation, Polymorphism and Inheritance.

Download 1.48 Mb.

Do'stlaringiz bilan baham:
1   ...   125   126   127   128   129   130   131   132   ...   182




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling