Quantcast
Channel: Way2Java
Browsing all 21 articles
Browse latest View live

RMI Application Step by Step Explanation

RMI Application Coding Note: But before going into this tutorial, it is advised to read RMI tutorial and also architecture. A typical RMI application includes four programs. Remote interface: Write an...

View Article



RMI Database Access Simple Application

RMI Database Access Application Before this program, it is advised to read the previous simple application InterestCalculation where the basic notes and guidelines are given. This application adds...

View Article

View All RMI

1. Java RMI Tutorial for Beginners 2. Java RMI Architecture 3. RMI Application Step by Step Programs Explanation 4. RMI Stepwise Compilation Execution Distribution 5. RMI Simple Application with...

View Article

Color scheme

Collections All Methods – At a Glance Reversing elements with reverse() How many times element occurs with frequency() Replacing elements with replaceAll() Finding Min and Max values with min() and...

View Article

Interview Questions for Freshers

OOPS Concepts What are local and global variables? A variable declared inside a method is known as “local variable” and its usage is limited within the method in which it declared only. A global...

View Article


Java Font Example

Java AWT supports graphics drawing in colors and fonts. To support colors and fonts, the Java.awt package come with two classes – class Color and class Font. Java Font Example to create font objects...

View Article

New Line BufferedWriter Java

New Line BufferedWriter Java uses newLine() method to give new line in the destination file. Example given. But before going into example and explanation, let us see what DataOutputStream will do with...

View Article

Java Unassigned Variables

Unassigned Local and Instance Variables Summary: In this "Java unassigned variables" tutorial, you will learn Java nature of unassigned variables which quiet contract to C/C++. One of the features of...

View Article


Set 1

1.   compareTo(Object) belongs to which class? 1.  Collections 2.  Comparator 3.  Comparable 4.  Arrays 2. singletonList(Object) method is defined in? 1.  class ArrayList 2.  interface List 3....

View Article


Set 2

1. Following snippet of code [crayon-5dc1d51978914804036719/] 1. raises compilation error 2. compiles but throws exception 3. compiles, executes and prints all the elements 4. last element is not...

View Article

Set 16 – Advance Java, Oracle, Unix Interview Questions

1. Which one of the following is not a ResultSet attribute? Choose the right option. 1. ResultSet.TYPE_SCROLL_SENSITIVE 2. ResultSet.TYPE_SCROLL_INSENSITIVE 3. ResultSet.TYPE_FORWARD_ONLY 4....

View Article

Set 17 – Advance Java, Oracle, Unix Interview Questions

1. Which type of driver converts JDBC calls into database (like Sybase, Oracle etc.) specific calls. Choose the right option. 1. JDBC-ODBC Bridge, plus ODBC driver (Type 1 driver known as bridge...

View Article

Set 18 – Advance Java, Oracle, Unix Interview Questions

1. Which one of the following Connection interface methods will undo the changes made on database? Choose the right option. 1. public abstract void cancel() throws java.sql.SQLException; 2. public...

View Article


Set 19 – Advance Java, Oracle, Unix Interview Questions

1. Choose the best practice for JDBC coding? 1. Close Statement and PreparedStatement objects 2. Select the JDBC driver for the application needs 3. 1 and 2 4. none of above 2. rollback() method is...

View Article

Set 20 – Advance Java, Oracle, Unix Interview Questions

1. Which option is the best practice for developing JDBC code? Choose the right option. 1. Use java.sql.PreparedStatement for repeated DML commands 2. Use cache of database connections from a...

View Article


Set 21 – Servlets, JSP, JSTL Interview Questions

1. Choose the right option to fill the blanks to get the values entered by the client as per the following URL. a) URL when client clicks the submit button...

View Article

Set 22 – Servlets, JSP, JSTL Interview Questions

1. a) Read the following servlet import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class DemoServlet extends HttpServlet { public void service(HttpServletRequest request,...

View Article


Set 23 – Servlets, JSP, JSTL Interview Questions

1. Choose all the right options that are valid URL mappings in web.xml file for the following servlet. public class Servlet1 extends GenericServlet { // business logic goes here } 1. <servlet>...

View Article

Set 24 – Servlets, JSP, JSTL Interview Questions

1. What is the userName value printed if the html input field “user” does not exist. Choose the right option. import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class Demo...

View Article

Set 25 – Servlets, JSP, JSTL Interview Questions

1. Choose all the right options that are true about the following servlet. a) web.xml entry snippet for DemoServlet xxxxx DemoServlet trafficfine 3500 b) Servlet code import javax.servlet.*; import...

View Article
Browsing all 21 articles
Browse latest View live




Latest Images