Difference between nulland zero in java
Difference between nulland zero in java
null is non-addressable storage. Zero is an arithmatic amount that can be used in more arithmetic calculations; null can not be.
Similar Messages
-
What is difference between C# Gzip and Java swing GZIPOutputStream?
Hi All,
I have a Java swing tool where i can compress file inputs and we have C# tool.
I am using GZIPOutputStream to compress the stream .
I found the difference between C# and Java Gzip compression while a compressing a file (temp.gif ) -
After Compression of temp.gif file in C# - compressed file size increased
while in java i found a 2% percentage of compression of data.
Could you please tell me , can i achieve same output in Java as compared to C# using GZIPOutputStream ?
Thank a lot in advance.797957 wrote:
Does java provides a better compression than C#?no idea, i don't do c# programming. and, your question is most likely really: "does java default to a higher compression level than c#".
Btw what is faster compression vs. better compression?meaning, does the code spend more time/effort trying to compress the data (slower but better compression) or less time/effort trying to compress the data (faster but worse compression). most compression algorithms allow you to control this tradeoff depending on whether you care more about cpu time or disk/memory space. -
Whats the difference between ABAP stack, ABAP+Java stack and Java stack
Hello,
I have a nagging doubt about the difference between the ABAP stack, ABAP+Java stack & the Java only stack. I believe that the method of applying the kernel for all the 3 types is different.
Also can we apply the ABAP support packs through JSPM.
Please put some light on this.
Thank youHi Zaheer
ABAP Stack
AS ABAP is used to provide the ABAP foundation of SAP NetWeaver.
Part of AS ABAP is the Search Engine Service (SES), which enables users to search for
business objects using Search and Classification (TREX). SES accesses Search and
Classification (TREX) functions through the Search and Classification (TREX) ABAP
client. SES replicates the business objects from the ABAP application to Search and
Classification (TREX), so that it can apply Search and Classification (TREX) search
functions to them. When a user enters a search query, the Search and Classification
(TREX) system responds to it, not the database for the ABAP application. For more
information, see the document Installation Guide SAP NetWeaver TREX Single Hosts /
Multiple Host.
Java stack
AS Java is used to provide the Java foundation of SAP NetWeaver. Among the key
capabilities of AS Java are:
J2EE Engine a J2EE 1.3-compliant application server for running enterprise
applications. In addition to the pure J2EE standard technologies, the J2EE
Engine implements complementary technologies, such as Web Dynpro or Web
Services, that are targeted at supporting large-scale, real-business application
development projects.
SAP Composite Application Framework Core (CAF Core) is a service-oriented
architecture for building and deploying composite applications. It enables
modeling of different service types entity services that represent a domain
model, application services that implement business logic, and external
services that offer connectivity to back-end services by means of remote
function calls (RFCs) or Web services. Usage type AS Java comprises the CAF
Core runtime environment, while design time tools are part of the SAP
NetWeaver Developer Studio.
Web Dynpro is the user interface technology for developing professional
business applications for mobile as well as for desktop clients. Web Dynpro
applications can easily be integrated into SAP NetWeaver Enterprise Portal,
providing a unified layout for the end user as well as enhanced navigation
support. Web Dynpro also allows, for example, the development of interactive
forms using the Adobe document services.
Adobe document services is a set of runtime services that provide a range of
form and document creation and manipulation functions such as:
Converting XML form templates (created using Adobe LiveCycle Designer)
to PDF and various print formats
Setting Adobe Reader rights to enable users to fill in and annotate forms,
save and print them locally, and include digital signatures for authentication
using the free Adobe Reader software
Extracting data from SAP applications into Interactive Forms and transferring form data
back into SAP applications using XML
ABAP + Java Stack
Contains both functionalities.
I hope this helps
Regards
Chen -
Difference between Integration server andSun Java system applivation server
Hi,
What is the difference between Sun Java system application server and Sun Seebeyond integration server???
When I see the documentation it says that Sun Seebeyond integration server is a specialized thing of Sun Java system application server.
What needs to be configured in Sun Java system application server to make it work like a integration server??
Thanks in advance
KKSHi KKS,
The SSIS is based on SJSAS 8.0 PE UR1. Some core features have been modified so that it's optimized for integration scenario's with fast throughput.
You can deploy your JCAPS code on SJSAS 8.1 EE as it's fully J2EE1.4 compliant, and this version has been tested and verified.
Configuring the AS's JVM helps.. especially taking note of the space division inside the JVM.
Good luck
Paul -
What's the difference between Netscape SDK for Java & JNDI?
I know I can use either JNDI or Netscape SDK to access iDS. So whats their differences basically?
Why would I need JNDI/Netscape SDK if I can just use either of them to access iDS?
Thanks!Netscape SDK for JAVA developed only for iplanet Directory Server but JNDI for any directory server.
JNDI has classes provided by Sun that will help your application interact with an LDAP server.JNDI applications work similarly to JDBC applications - write applications once and be free to use "drivers" from different vendors. Sun provides the "driver" that will help interact with the LDAP server. Sun also provides "drivers" for other naming services (like CORBA, Netscape).
The Java Naming and Directory Interface (JNDI) allows Java applications to use a single set of methods to access multiple naming and directory services such as LDAP and NIS.
JNDI is a Java API that provides a common way for programmers to access a variety of naming and directory services. The API consists of several packages:
javax.naming for naming operations (access entries)
javax.naming.directory for directory operations (access attributes)
javax.naming.event for requesting event notification
javax.naming.ldap for LDAP-specific features.
JNDI operates through a layer of software called a Service Provider. The Service Provider implements the JNDI operations in terms of a particular underlying protocol.
JNDI's Service Provider Interface (SPI) allows you to select Service Providers at runtime. In many cases you can use the same JNDI methods regardless of whether the Service Provider is talking to an LDAP server or using another protocol such as NIS. In order to access all of the functionality of the LDAP protocol, however, you will have to use methods outside of this abstraction. -
Finding the difference between 2 ArrayCollections (like java?)
Hi,
In java you can do a 'diff' between two Lists like this: myList_new.removeAll(myList_old); This removes from myList_new all the items identical in myList_old
Is there something similar in Actionscript or do I have to use brute force (loop thru both ArrayCollections and compare) ? My guess is that brute force is required since actionscript doesn't have generics but I'd love to be proved wrong !!!
thanks!If your objects have a unique identifier on them you could do something like below.
Notice I use value.id as an assumption that "id" is the name of the identifier. If you have a differently named identifer, you would need to change "id" to that name.
If there is no unique identifier on your objects, I think you'll just have to loop through the Collections and compare the attributes manually.
public function removeAll(collection1:ArrayCollection,
collection2:ArrayCollection):ArrayCollection{
var dictionary : Dictionary = new Dictionary(true);
var value : Object;
var i:Number
//Loop through first collection and put objects in dictionary
for(i = 0; i < collection1.length; i++){
value = collection1.getItemAt(i);
dictionary[value.id] = value;
//Loop through second collection and remove objects in dictionary
for(i = 0; i < collection2.length; i++){
value = collection2.getItemAt(i);
if(dictionary[value.id] != null){
delete dictionary[value.id];
var unique:ArrayCollection = new ArrayCollection();
//Loop through dictionary and put remaining value in collection
for(var prop:String in dictionary){
unique.addItem(dictionary[prop]);
dictionary = null;
return unique; -
Difference between MySQL null and JAVA null
When I create a new record in my MySQL db and some of the values are not intered, MySQL thinks of them as null. Java makes an error when the variable is used. But when I set the values to ' ' (blank) java sees it as null and makes no error.
Is there a way around that??????
BR Soren"" and null is totally different thing.
you can try checking for null instead of "". -
Disk Utility: Differences between "Zero Out Data" and "7-Pass Erase"?
I'm wondering if anyone knows if there's a significant difference between the "Zero Out Data" erase option in Disk Utility (specifically Disk Utility 10.5.5), and the "7-Pass Erase" and "35-Pass Erase" options in same software.
Here's why I'm asking: I have a co-worker with an iMac G5 20" 1.8GHz with 160GB internal hard drive. As a result of the power supply overheating a week ago due to dust, some hard drive problems resulted. I'm trying to assess whether these are 'soft' formatting problems that can be recovered from, or 'hard' problems requiring replacement of the hard drive and/or power supply.
Following the failure, I removed the dust and restored the iMac to servicable form. The power supply seems to be OK now. The next thing was to attempt to recover as much data as possible from the 160GB, as the last full backup was a week old. Carbon Copy Cloner, shell copy via 'sudo cp -p -R -v', Finder copy, and DiskWarrior recovery all met with problems. TechTool Pro identified a huge swatch of unreadable sectors during repeated surface scans. Unfortunately, these unreadable sectors were located midway in the OSX boot partition (an 80GB partition), and not in the other 80GB partition devoted to lower priority video data.
When I was satisfied I had backed up the data to the best of my abilities, I next set out to reformat the drive and see if the bad sectors could be eliminated or remapped out of existence. I did a "Zero Out Data" erasure in Disk Utility (with no errors during the erase), but TechTool Pro showed the bad sectors persisted in equal strength at the same location. I next executed a sixteen hour "7-Pass Erase" (again no errors, and confirming that it takes about an hour per 10GB). The next day when I ran TechTool pro, all of the sector errors had disappeared. I'm a bit perplexed as to why the "7-Pass Erase" seems to have recovered the use of the drive. Is it possible that there are simply thousands of bad sectors now remapped that I'm not seeing? [If so, how do I check for this?] TechTool Pro has not reported any S.M.A.R.T. issues to date on the drive. What am I to make of that?
There are some related threads I've checked into, but I'm not sure how to properly assess my situation based on this information:
<http://discussions.apple.com/thread.jspa?threadID=232007>
<http://discussions.apple.com/thread.jspa?threadID=138559>
<http://discussions.apple.com/thread.jspa?threadID=118455>
Since the iMac has three weeks left on it's one year warranty, and I've already moved the user to another machine temporarily, I'm thinking that the smart thing to so is to send it in to Apple to have them look at the power supply and hard drive. That way, when it returns, even if there is still a lingering hardware problem, at least it will be covered under warranty for another 90 days.
Any thoughts?
iMac G5 20" 1.8GHz Mac OS X (10.4.6) 1.25GB RAM, 160GB hard disk, SuperDriveHI, Bret.
The only differences between "Zero Out Data", "7-Pass Erase", and "35-Pass Erase" are the number of times a binary zero is written to every bit on the disk. "Zero Out Data" writes a binary zero once, whereas the 7- and 35-Pass options write a zero seven and 35 times, respectively.
Technically, one pass with Zero Out Data should be sufficient to map bad sectors out of service, a process also known as sparing. If a bad sector is encountered, it is both marked as "in use" in the directory's allocation table and added to the directory's "bad blocks file."
My understanding is that the Surface Scan of Tech Tool Pro should identify bad sectors every time it is run unless the bad sectors have been locked out by the drive controller of the ATA drive itself. This is because Surface Scan checks the entire surface of the disk.
What may have happened is that running "Zero Out Data" spared the bad blocks from a directory standpoint, but did not result in the drive's controller locking out those sectors for reasons detailed in the "Surface Scan" section of the Tech Tool Pro manual. However, the 7-Pass Erase may have resulted in the drive's controller locking out the bad sectors and why Surface Scan did not pick them up after such.
Given the problems you described, I concur with your plan to have Apple check the affected computer. You might also want to consider purchasing an AppleCare Protection Plan for that Mac: I recommend and buy these for all my Macs.
For some additional information on bad sectors, see the "Bad Sectors" section of my "Resolving Disk, Permission, and Cache Corruption" FAQ.
Good luck!
Dr. Smoke
Author: Troubleshooting Mac® OS X
Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
I may receive some form of compensation, financial or otherwise, from my recommendation or link. -
I have a 50Hz sine wave and a pulse signal on a same graph. The phase difference between two is between 0-90 degrees.
Now I need to calculate the time difference between (when the sine wave crosses zero volts) and (when the pulse rises). The frequency will stay approximately same for both signals.
The application is for a three phase generator. In simple words, when the time difference between the zero-crossing of sine wave and the pulse rises increases, that means that the load on the generator has increases.
I am a beginner user of LabView (version 9, 2009), maybe it is a very simple problem but I've been pulling my hair out for the last few days and coudln't figure anything out. Any help would be greatly appreciated. I am using DAQ USB-6008 to measure these voltages and pulse from the generator and a sensor
I have attached a jpg (a graph that i just made with excel to explain). The time 't' is what I am trying to measure
Cheers
Awais
Message Edited by awais.h on 03-30-2010 11:20 PM
Message Edited by awais.h on 03-30-2010 11:21 PM
Solved!
Go to Solution.Hi
Thanks for the code but I'm afraid it won't work. Like you said the probability of choosing a value that is on both graphs may not happen. This is something that I would like the code to do automatically.
But I did use the previous code posted and made some modifications to it and it seems to work perfectly. Now the next thing is to be able to get just that one value that tells you the first time difference.
Here is what I get using that code.
As you can see from the t Values. I only need the one that is highlighted. If there is a way to filter out the rest it would be great.
I was thinking of a while loop and as soon as the value is higher than 3E-5 it would store the number and stop the loop, but I'm not too familiar with arrays in labview.
Here is the the code modified.
As you can see, it wasn't that big of a modification and it still is your code.
I will keep trying.
Thanks for the help
Attachments:
FinalShockSpeed.vi 55 KB -
How to find the difference between 2 time values in Java
hi all,
i have 2 time values
String time1="6:20";
String time2="21:30"
How to find the difference between 2 times in Java?
pls help
thanx in advance....Calculating Java dates: Take the time to learn how to create and use dates
Working in Java time: Learn the basics of calculating elapsed time in Java
Formatting a Date Using a Custom Format
Parsing a Date Using a Custom Format -
Difference between Java Method and a java function
what is the difference between a method in java and a function
in java ?
( i have seen that main() is called a function but the others
are method )
is it for main can only be called by JVM ?
please help if u can...
suman
( [email protected] )Though Ceci isn't a programmer, his answer is closer: strictly speaking, Java has no functions.
The Java Language Specification, 2nd Ed, mentions the word "function" thrice: in the sense "to function as something", when talking about a C function, and in the index as "mathematical function". (Get the spec under "documentation" on the left hand side of your screen.)
So, officially, no functions.
Informally, many people use "function" and "method" as synonyms. You may even find some that calls a void-returning method "procedure" and value methods "function" (perhaps Pascal background?). And a Lisp programmer might call Runnable.run() a "thunk", but he'd just be pulling your leg. -
The differents between Java Beans and Enterprise Java Beans
Please help me!
What is the differents between JavaBeans and Enterprise Java Beans (EJB) ?
Thank's for your answerEnterprise Java Beans are special type of java beans.
EJBs invented to be used via remote VMs or remote computer
systems.They must be deployed on server to become accesible for remote
clients. -
Difference between & and && operater and difference between and
what is difference between & and && oprater in java
and what is difference between << and <<< operateri am sorry i dont know about << ,<<<< There isn't a <<< operator.
However I presume the operator being referred to is >>>
They are bit shifting operators.
In fact its the [url http://java.sun.com/docs/books/tutorial/java/nutsandbolts/bitwise.html]very next page of the tutorial linked to above.
<< == left shift
== right shift,
== right shift (unsigned)
Cheers,
evnafets -
Difference between JDK and SDK
Hi,
I would like to know the difference between the JDK and Java 2 SDK.
Please clarify. Thanks in advance!New thread created for this question:
Database Connectivity -
Difference between sap jco & sap jra
Hi
What is difference between sap jco and sap jra , when to use sap jco and sap jra
Thanks
Jagannadha RaoSAP Jco - http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm
to get an idea about SAP JCo have a look into this thread. It is a good read abt SAP Jco and Java Proxies.
Re: Difference between SAP JCO and Java Proxies
Abt JRA , i guess SAP JRA uses SAP JCo for the calls made from its framework. Not sure about it though.
http://help.sap.com/saphelp_nw04/helpdata/en/12/5b84429069de54e10000000a155106/content.htm
Maybe you are looking for
-
Hello, I have a little experience from 10 years ago building web sites, but things have changed a lot (but i am very good at teaching myself). Can anyone advise me on the way to go? I want to create a t-shirt e-commerce site and have no money to pay
-
Invalid username/password; logon denied
We are migrating from Oracle 8 to Oracle 11g. Amongst the various tools the client uses is an application written in C++ that uses ODBC. This application is giving us a peculiar problem: From the laptop of one of the main developers, it can connect t
-
Adobe HCM Processes and Forms Start processes iView error
Hi, We are implementing Adobe HCM processes. The forms based on the PCR technology are working fine. However, we want the new HCM Processes and Forms technology. We have implemented Business packages for MSS, HR Administrator and XSS (PC_GUI). ADS is
-
Help! Syncing yahoo mail to mac mail
trying to sync mac mail to ymail. not sure how to fill out all the fields for "add an account". do i use "pop" or "imap" for incoming and how do i fill out field? do i use smptauth, etc for outgoing and (again) how exactly do i fill out field boxes?
-
This is a new system that I'm putting together. Windows 98SE was installed on the hard drive but for what ever reason files were missing. Since this was a new install I decided to start over from scratch. I did a low level reformat of the hard dr