Home Tutorialhelp Comment Small doubt regarding the example

 
 

Comment

Jhulfikar Ali
Small doubt regarding the example,
September 24, 2007 at 10:38 PM

Hi

I feel there is a bug/printing mistake in the given example. Example says like 0 | 0 which yields 0. But output is different from the program. Please change if the program is wrong or update me the reason for why the output was kept like this.

With regards,
Jhulfikar Ali. A
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

bitwise operators
://www.roseindia.net/java/master-java/java-bitwise-or.shtml...bitwise operators  include<stdio.h> int main(){ short x... this program give the answer as 7  hi friend, Bitwise OR (|) operator returns 1 

Java Beginners

Doubt Regarding Charts
Doubt Regarding Charts  Hi, Can you please help me out by answering "hoe to include charts in core java code and struts code" thanks in advance, Swaroop Eswara   Please visit the following link: Jfreechart 

Java Beginners

Doubt regarding charts and jsp
Doubt regarding charts and jsp  Hi, I successfully executed the bar chart in normal java application. But I want the Bar Chart to be executed... java application output to an jsp page? thanks in advance   Put the jar 

Java Beginners

bitwise operators
bitwise operators  Write short note on bitwise operators of Java.   Please visit the following links: http://www.roseindia.net/java/java-tips/data/expressions/slides-bitops.shtml http://www.roseindia.net/java/java 

Java Tips and Examples

Java Bitwise XOR "^" Operator
Java Bitwise XOR "^" Operator       In this section, you will learn how to use bitwise XOR... that perform bitwise operations. In the example below we have shown the usage 

Java Tips and Examples

Java Bitwise NOT "~" Operator
Java Bitwise NOT "~" Operator       In this section, you will learn how to use bitwise... that perform bitwise operations. In the example below we have shown the usage 

Java Beginners

DOUBT
DOUBT  JAVA IS PLATFORM INDEPENDENT BUT U HAVE ALSO WRITTEN THAT JAVA RUN ON ANY JAVA PLATFORM. SO, WHAT DOES THIS ACTUALLY MEAN THAT WHETHER JAVA CAN RUN ANYWHERE OR CAN RUN ANYWHERE WHERE JAVA PLATFORM 

Java Tips and Examples

Java Bitwise AND " &" Operator
Java Bitwise AND " &" Operator   ... bitwise AND " &" operator in Java. The Java programming language has operators that perform bitwise operations. In the example below we have shown 

Java Tips and Examples

Java Bitwise OR " |" Operator
Java Bitwise OR " |" Operator       In this section, you will learn how to use bitwise OR "... bitwise operations. In the example below we have shown the usage of  

Java Beginners

doubt
applications and Is java pure object oriented programming language and from where we can..., object oriented language is required in real time applications. Java is not pure... creating the instance. You can download the java decompiler from the following link 

Java Interview Questions

java doubt
the message which we want to be printed. For instance in the above example we have used... use throws keyword. Point to note here is that the Java compiler very well knows 

Java Beginners

Doubt
Doubt  Hi, Can any one help me out in step wise, how to get are charts using java in eclipse ide? thanks in advance   Download jar...)Select 'Java Build Path' in the left hand column. 2)Select the 'Libraries' tab 

General

Java Bitwise Operator
/master-java/bitwise-bitshift-operators.shtml      ... Java Bitwise Operator      ... (or characters). However in Java, the bitwise and bit shift operators are used 

Core Java

Java bitwise OR "|" operator
Java bitwise OR "|" operator In this section you will learn about how to use" |" operator in java. Java provides six types of operators... example using Bitwise (OR) "|" operator. public class Operators 

Java Beginners

Doubt on Segmentation - Java Beginners
Doubt on Segmentation  Hi .. ImageProcessing.. How to segment the each and every characters from the bitmap image Consider for an example bitmap1.bmp: Visuallc++ text is on bitmap1.bmp..How to extract those from image 

Java-Tutorials

Bitwise Operators in java 7
In this section you will learn about the Bitwise Operators. This is one type of operators 

Java Beginners

doubt on synchronized block in java
doubt on synchronized block in java  Hi ! some people are feeling... am a beginner.I am learning java with out any teacher.I need your valuable... lock object of a class other than table?can you give example based on below 

General

Bitwise and Bit Shift Operators
Bitwise and Bit Shift Operators       In Java the bitwise and bit shift operators are used... of the Operator Example  ~   Unary bitwise 

General

Master Java In A Week
Master Java In A Week Master Java Programming Language in a week. This tutorial is good for beginners in Java and it will teach you the basics and advanced concepts of Java programming Language. Java is versatile, platform 

Java Beginners

doubt - Java Beginners
/java/example/java/applet Thanks 

Programming Tutorials

Master java in a week
;    Class Declaration: Class is the building block in Java...; The main method is the entry point in the Java program and java program can't run... is always first thing that is executed in a java program. Here is the main method 

General

Change Background of Master Slide Using Java
Change Background of Master Slide Using Java         In this example we are going to create a slide then change background of the master slide. In this example we 

JSP Servlet Questions

big doubt
be displayed as marquee in the bottom of the page.below is the example if the data base...;html> <body> <%@page language="java" import="java.sql.*"%> <%@page language="java" import="java.io.*"%> < 

Java Beginners

java beginners doubt!
java beginners doubt!  How to write clone()in java strings 

Java Beginners

doubt in inheritance program - Java Beginners
doubt in inheritance program  how will we get the result 6 2 5 in the inheritance program in the given example i got 6 &2 but i am confused about 5 

Java Beginners

regarding applets - Java Beginners
/java/example/java/awt/ Thanks. Amardeep...regarding applets  sir can you please tell how one applet can send request to another say i want to send some information   Hi friend 

Java Beginners

small java project - Java Beginners
small java project  i've just started using java at work and i need to get my self up to speed with it, can you give me a small java for beginners project to work on. your concern will be highly appreciated 

Java Beginners

small java project - Java Beginners
small java project  i've just started using java at work and i need to get my self up to speed with it, can you give me a small java for beginners project to work on. your concern will be highly appreciated 

Core Java

Java XOR operator
/master-java/java-bitwise-xor.shtml http:/www.roseindia.net/software-tutorials... Java XOR operator       Java makes available the bitwise operators like AND, OR, XOR, and NOT.  

Java Beginners

Doubts regarding Hashtable - Java Beginners
information, http://www.roseindia.net/java/example/java/util/ Thanks...Doubts regarding Hashtable  Hi, I am new to hashtable.Is... then a constructor is no return any value. so your example is occuring a null pointer exception 

Java Beginners

"Doubt on Swing" - Java Beginners
"Doubt on Swing"  Hi Friend.... Thanks for ur goog Response.. i need to create a GUI Like... pic1.gif RadioButton pic2.gif RadioButton Pic3.gif RadioButton If we have select d appropriate radio 

Java Beginners

problem regarding autoboxing - Java Beginners
problem regarding autoboxing    hello all , i have a problem regarding autoboxing Integer i = 127; Integer j = 127... args[]) throws IOException { System.out.println("Example of value comparing 

Java Beginners

regarding login.jsp code - Java Beginners
regarding login.jsp code  i tried to implement the login.jsp code example given in roseindia.net. but it is saying invalid loginbean. after compilation. can any pls send me the correct code that implements the login with jsp 

Java Beginners

I'v a doubt - Java Beginners
I'v a doubt  Hai to all, How to break the mysql jar file, and import into the java file by without using any editiors. With regards, Terrance. J 

Java3D Questions

java doubt - Java3D
java doubt   hi sir , this is sairam am intersted on programs. so i choose the java . i want to become a good programmer . in java there are so many catagerious , on that which one is use full to me for improving me 

EJB Questions

doubt in ejb3 - EJB
doubt in ejb3  hi i am new to ejb3 .i have written simple code which...(name="example") EntityManager em; public static final... = Persistence.createEntityManagerFactory("example"); // this.em= emf.createEntityManager 

Java Beginners

Hi Friend ..Doubt on Exceptions - Java Beginners
Hi Friend ..Doubt on Exceptions  Hi Friend... Can u please send some Example program for Exceptions.. I want program for ArrayIndexOutOfbounds OverFlow Exception.. Thanks... Sakthi  Hi friend, Code 

Java Beginners

Small program code - Java Beginners
Small program code  Develop the echo server and the echo client program that display whatever is typed in the server on to the client 

JDBC Questions

regarding java - JDBC
regarding java  i am making a project on supply chain system i have done front end work using swing and AWT concepts of java i am using mysql as back end and i have also configured java with mysql i am using three table 

Java Interview Questions

regarding rev
regarding rev  write a prog. in java that display all the arguments passed at the command line in reverse order 

Java Interview Questions

Regarding core java
Regarding core java  how do we find reverse of string with out using String functions 

Java Interview Questions

regarding interview in java
regarding interview in java  why java doesnot suppor muliple inheritance   Java does not support multiple inheritance directly... it will take.It creates complexity.Therefore java does not support it directly 

Java Beginners

regarding j2me - Java Beginners
regarding j2me  sir but i have to use the drawString u tell me how can i display two too long strings 

Java Beginners

Regarding path settings in java
Regarding path settings in java  Hello I had a problem of setting paths in Java.I setted classpath(C:\java\j2sdk1.4.2\lib) and path(c:\java\j2sdk1.4.2\bin) in system variables. But when i compile simple java progrm 

Java Interview Questions

regarding object references - Java Interview Questions
regarding object references  How can we find the number of instances created to an object in java? Write a program for this?  Hi Friend, Try the following code: class Example { static int ob = 0; public Example 

HTML Questions

Regarding Project
Regarding Project  sir, i am doing a project in java. my project is CITY GUIDE it is an web application. please give me documentation of my project 

HTML Questions

Regarding Project
Regarding Project  sir, i am doing a project in java. my project is CITY GUIDE it is an web application. please give me documentation of my project 

Java Beginners

Regarding Java Framework - Java Beginners
Regarding Java Framework  What is a frame work.  Hi Friend, A framework may be for a set of functions within a system and how they interrelate; the layers of an operating system; the layers of an application 

Java Beginners

regarding java package - Java Beginners
regarding java package  can you provide tutorial for java.sql package please help  Hi friend, I am sending you a link. This link will help you. Please visit for more information. http://www.roseindia.net 

Java Beginners

Hi Friend.. Doubt on + - Java Beginners
Hi Friend.. Doubt on +   Hi friend... import java.io.*; class Plus { public static void main(String args[]) { int a=10; int b= 25... } }   Hi friend, The Java language provides special support 

Java Beginners

Hi...doubt on Packages - Java Beginners
Hi...doubt on Packages  Does import.javax.mail.* is already Existing Package in java.. I have downloaded one program on Password Authentication... ..Explain me.  Hi friend, Package javax.mail The Java Mail API allows 

Java Beginners

Doubt on Data Types - Java Beginners
Doubt on Data Types  Hi Friend doubt on DataTypes... How should i declare n Assign value to the Float variable; Can u Please COMPILE this Program... to put it in java.  If you want to declare a decimal value in Java 

Java Beginners

Hi Friend.. Doubt on + - Java Beginners
Hi Friend.. Doubt on +   Hi friend... import java.io.*; class Plus { public static void main(String args[]) { int a=10; int b= 25...;java Plus A = 10 B = 25 Plus = 1025 

Java Beginners

Regarding Exception - Java Beginners
Regarding Exception  1.Where and when can we use IllegalArgumentException? 2.What is the difference between fillInStackTrace and printStackTrace ? In which cases they can be used?  Hi friend, public class 

JDBC Questions

regarding jdbc - JDBC
regarding jdbc  how to connect mysql with java example you have provided is having some error and i am not able to remove that error please provide me detail explanation   Hi friend, Please give the full source 

JSP Servlet Questions

small query - JSP-Servlet
small query  how to set value to textbox on browser side which is retrived from the database?  Hi friend, Plz explain problem in details which technology you have used e.g. JSP/Servlet/Java etc... For more 

Java Beginners

Hi ..doubt on DATE - Java Beginners
Hi ..doubt on DATE  Hi Friend...Thank u for ur valuable response.. IS IT POSSIBLE FOR US? I need to display the total Number od days by Each month... WAIT I WILL SHOW THE OUTPUT: --------------------------------- ENTER 

JDBC Questions

Regarding Datasource
Regarding Datasource  Hi friend, Good morning,how r u,i want to share 1 information to u,I got a job in VERIZON DATA SERVICES INDIA PVT.LTD,u help... in this company,Thanks a lot to provide help.presently my domain is java,I am using 

WebSevices Questions

Internet and Web related questions for Web Master.
Internet and Web related questions for Web Master.   Explain the difference between the Internet and Web. What are Web browsers? Explain the two main... is Java? What are the applications of Java that you can use for Web designing 

JSP Servlet Questions

regarding java files genarated by jsp
regarding java files genarated by jsp  Hi,... I'm running a project...: 233 in the generated java file Syntax error, insert "}" to complete Block" Where to find the genarated java file??? Thank u in advance 

Java Beginners

regarding project
regarding project  OBJECTIVES OF THIS PROJECT: -Ability to test... solution quickly. PROJECT NAME: DID I WRITE A GOOD JAVA PROGRAM?(JAVA/MVC/UI... of the following: The java code class and package(either the exact file path 

Java Beginners

regarding project
regarding project  OBJECTIVES OF THIS PROJECT: -Ability to test... and come up with combined solution quickly. PROJECT NAME: DID I WRITE A GOOD JAVA PROGRAM?(JAVA/MVC/UI) BRIEF DESCRIPTION OF A PROJECT: The program helps 

Java Beginners

Hi..Again Doubt .. - Java Beginners
Hi..Again Doubt ..  Thank u for ur Very Good Response...Really great.. i have completed that.. If i click the RadioButton,,ActionListenr should get call. It should add to the MS Acess table..Plz check this out.... hope u ill 

Java Beginners

regarding project
regarding project   sir we need help about project. we have idea... JAVA PROGRAM?(JAVA/MVC/UI) BRIEF DESCRIPTION OF A PROJECT: The program helps...: The java code class and package(either the exact file path or the jar file containing 

Java Beginners

Regarding GUI Applications
jmenu item in java desktop application  How to create a save and open jmenu item in java desktop application.   Here is a simple JMenuItem example in java swing through which you can perform open and save operations 

Java Beginners

Regarding Gantt chart generation - Java Beginners
Regarding Gantt chart generation  how to generate a jdbc gantt chart using jfreechart api in netbeans simple java application?  Hi Friend... Example", // chart Heading "Task", // X-axis label 

Java Beginners

Regarding GUI Applications
save and open jmenu item  How to create a save and open jmenu item in java desktop application.   Here is a simple JMenuItem example in java swing through which you can perform open and save operations on File 

Java Beginners

Regarding GUI Applications
open jmenu item in java  How to create a save and open jmenu item in java desktop application.   Here is a simple JMenuItem example in java swing through which you can perform open and save operations on File. import 

Java Beginners

Regarding GUI Applications
GUI Applications  How to create a save and open jmenu item in java desktop application.   Here is a simple JMenuItem example in java swing...); } }   If you want the simple one, then here is another example of JMenuItem 

JDBC Questions

regarding jdbc - JDBC
regarding jdbc  how i can configure java with ms access 

Java Beginners

doubt in the following code of java - Java Beginners
doubt in the following code of java  Hi frends, actually i want to display the following calculated matrix a[][] in the table format... which can accept all the size of matrix........and one more doubt, i want 

Java Server Faces Questions

Doubt - Java Server Faces Questions
 

Java Server Faces Questions

Doubt - Java Server Faces Questions
 

Java Beginners

Hi Friend...Doubt on Uni Cast & Multi Cast - Java Beginners
one-to-many connections, an example for multicast is the java eventhandling...Hi Friend...Doubt on Uni Cast & Multi Cast  Hi Friend.. Can u plz send some Details about the Uni CAst & Multi cast in JAVA...  Hi 

Java Beginners

Small typo at SCJP Module-1 Question-6
Small typo at SCJP Module-1 Question-6  Hi Team, This is a awesome site which is serving lot of peoples in learning java effectivly, thanks alot for that, A small typo at "SCJP Module-1 Question-6", in spite of "a.method 

JSP Servlet Questions

Regarding a project in java - JSP-Servlet
Regarding a project in java  am doing a project on Tiny ETL(Extract Transform and Load), using jsp-servlets. Can u help me out by giving some suggestions or material to follow. It is based on datawarehousing.   Hi 

Java Beginners

Regarding GUI Applications
Regarding GUI Applications  How to create a save and open jmenu item in java desktop application 

Applet Questions

Regarding project - Applet
Regarding project  hi friend , iam doing project in Visual cryptography in Java so i need the Help regarding how to make a share of a original imahe into shares anu 

Java Interview Questions

regarding oops - Java Interview Questions
regarding oops  what is the differences between web server and application server?   Hi Friend, Difference between Web Server and Application Server: 1)Web server handles only Http requests where as Application 

Java Server Faces Questions

doubt regarding JSF
doubt regarding JSF  Hi, pls explain what is difference between struts &JSF? pls explain what is difference between SPRING &JSF 

Java Beginners

doubt in my program code - Java Beginners
doubt in my program code  i have developed a web browser with the help of standard widget toolkit(swt) and java. i creted some buttons such as GO,REFRESH,STOP.... on which the name is not apppeared as GO,STOP...but the name 

Java Beginners

Regarding Documentation of Packages
Regarding Documentation of Packages  Hello How to get java packages ie documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math etc 

Java Beginners

Doubt regarding charts and jsp
Doubt regarding charts and jsp  Hi in the http://www.roseindia.net/chartgraphs/barchart-jsppage.shtml of the code (new StandardEntityCollection()); final File file1 = new File("../webapps/jspchart/web/barchart.png 

JSP Servlet Questions

regarding web.xml - JSP-Servlet
regarding web.xml  I am the java beginner, please send the web.xml code and how to run a servlet for apache5.0.... my problem is in tomcat manager am getting the message 'fail' in web.xml  Hello,Please check the tomcat 

Design concepts & design patterns Questions

want help regarding a project
want help regarding a project  hiii this is hemangi and I want guidance that I am working on a project of hospital management system so I want... inbuilt report and all facility available in java 

General

Java AWT Package Example
Java AWT Package Example      .... Many running examples are provided that will help you master AWT package. Example... Example In Java In this section, you will learn how to create BorderLayout 

Struts Questions

Regarding one business scenario
Regarding one business scenario  Ya actually i have a requirement which is I have four questions 1.DOB... Java And how to integrate java application to jsp page 

Java Beginners

Regarding Documentation of API
Regarding Documentation of API  Hello How to get java documentation of classes ,Interfaces and methods from windows command prompt.In the sense....   Give the following command: javap java.[packagename].[classname] eg 

Java Beginners

Regarding Documentation of API
Regarding Documentation of API  Hello How to get java documentation of classes ,Interfaces and methods from windows command prompt.In the sense... the following command: javap java.[packagename].[classname] eg, javap 

Java Beginners

servlet doubt on online examination system
servlet doubt on online examination system  hai. sir ,i am doing project in online examination system. taken back end as mysql database. and doing the programs using java servlet. MY PROBLEM and doubt is 1. how 2 skip 

JDBC Questions

Query regarding JSP, JDBC
Query regarding JSP, JDBC  I have a table in SQL Server database storing some ids and names. In my jsp code a while loop is displaying the list... or hashmap in java 

Java Server Faces Questions

Regarding Date Format - Java Server Faces Questions
Regarding Date Format  How I can convert this(18-Aug-08) date format to Gregorian calendar date format?plz send me the syntax and code plz!!  hai,, http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f 

JavaMail Questions

regarding email - JavaMail
regarding email  hi i used the code which is in this web site to send email.But im getting an error while running. the error is:"Could not connect... that object. For read more information on Java Mail visit to : http 

Java Beginners

My big doubt on java prgmn.. need solution asap
My big doubt on java prgmn.. need solution asap  How do you write prgrm 4 dis : 3% discount is given if payment is made within 30days of purchase. date of purchase and payment entered by user 

Swing AWT

Regarding My 3rd Question in Java - Swing AWT
Regarding My 3rd Question in Java  sir in Netbeans By default JTable Columns will appear Horizontal like Title1 Title2 Title3 Title4 in below these our data will appear so my question that is there any method 

XML Questions

Re: XML SCHEMA MATCHING doubt's - XML
Re: XML SCHEMA MATCHING doubt's  how to store xml file in database? which database require to store xml file? how to connect xml with java 

XML Questions

Re: XML SCHEMA MATCHING doubt's - XML
Re: XML SCHEMA MATCHING doubt's  how to store xml file in database? which database require to store xml file? how to connect xml with java 

Core Java

Java "&" operator
; operator in Java: A simple example using Bitwise (AND) "&"... in java. Bitwise operator work on bit and perform bit by bit operation...Java "&" operator. In this section you will learn how to use 

General

Learn the Java 8 and master the new features of JDK 8
JDK 8 - Java 8 Tutorial and examples: Learn JDK 8 with the help of examples... many articles and example of JDK 8. JDK 8 is still under development...; Lambdas, Functional interface, Accumulators, Stream, Time API etc. and other Java 

JSP Servlet Questions

Doubt in using combination of JSP page and Java class. - JSP-Servlet
Doubt in using combination of JSP page and Java class.   I've got... a Pure Java class"? The Database table looks like this: SeatCode... youfor replying. I didn't used struts,insted i went with servlet and Java Class 

Advertisements Advertisements
 

 

 

DMCA.com