answersLogoWhite

0

📱

Java Programming

The Java programming language was released in 1995 as a core component of the Java platform of Sun Microsystems. It is a general-purpose, class-based, object-oriented language that is widely used in application software and web applications.

5,203 Questions

Is address a user-defined data type?

You can define a data-type called 'address':

1. typedef void *address;

2. typedef struct address {

char country [32];

char state [32];

...

} address.

Why any number divide by zero bring error in java?

Because by the laws of mathematics, you cannot divide anything by zero. So you will have to adjust your code to allow for that fact.

Trying to create a web application where users in different time zones will access it. How do I set up the DB and application to handle this I am using Oracle 11g and Java EE?

All access is relative to the local time zone of the server, so you simply record the local time. Knowing the server's time zone allows you determine how many hours behind or in front of UTC you are and knowing the user's time zone allows you to do the same for the user, thus you can calculate the time difference by subtracting one from the other.

For example, suppose the server is in Los Angeles, USA and the user is in Rome, Italy. Los Angeles is UTC -8 while Rome is UTC +1, so the time difference is 9 hours in total, such that Rome is 9 hours ahead of Los Angeles. So if a user accesses the server at 10:00 Los Angeles time, it would have been 19:00 in Rome.

As another example, suppose the server is in Helsinki, Finland (UTC +2), and the user is in Toronto, Canada (UTC -5). The time difference is 7 hours, such that Toronto is 7 hours behind Helsinki. So an access at 10:00 in Helsinki occurred at 03:00 in Toronto.

Can you teach me java?

Yes I can teach you Java.... give your mail Id ...I will send you my details

What are the advantages and disadvantages of Enterprise Java Beans?

The advantage of Enterprise Java Beans is that they standardize coding thus expediting the fulfillment of application requirements. The disadvantage of Enterprise Java Beans is that their integration into an application is often complex and challenging.

What is the first value that is searched for in an array when using a selection sort algorithm?

The first value is marked first, and then the smallest value is searched to compare to the first and then place in the appropriate location.

Give a brief description about compiled and interpreted high level languages?

Any high level language may be either compiled or interpreted. The difference is in the execution speed. Interpreted programs must re-learn how to do each statement in the program, whereas a compiled program is already in the machine code language of the hardware and runs much faster.

System.out.flush function in java?

it will show output fastly. when compare with system.out.print

What is an immutable image?

A special case of the more general concept of an immutable object - an object that cannot be modified after it is created.

For the case of an immutable image, you can read the image but not change it.

How do you get edge value between two nodes in graph using java?

That depends how the data is stored. If you use predesigend classes to store information about nodes and edges, check the documentation of the specific class or classes. Or ask a question here, specifiying the class you are using.

Java program to check A is divisible by B?

Implement this method:

public static boolean isDivisible(int a, int b) {

if(a % b == 0) {

return true;

}

else {

return false;

}

}

.net is the programming language?

No. .NET is a framework, not a programming language. It is the common framework used by the C#, F# and Visual Basic programming languages.

Why does your escort jerk violently while accelerating when it runs well most of the time?

This could be a lot of things. It is hard to say for sure with out seeing your car. 1. It could be that one of the plug wires is damaged. 2. Bad O2 sensor. 3. Could be that your fuel injectors need to be cleaned. 4. If you have an older car that has a throttle body injection system or a carburator, you will have a distributer cap. If there is moisture in it, your car will run this way. However, the moisture usually will evaporate and the problem will go away. This is probably not your problem. I would think that this probably has something to do with fuel getting to the fuel injector system or something else in the fuel system. I have had all of the above problems, so I know that these things could be your problem. The easiest thing to do to find out where the problem lies is to go to an automotive store and ask them to do a computer diagnostics on your car. A lot of stores offer this service free of charge. A mechanic will charge you for this service. A diagnostic will tell you where the problem lies.

How one jvm call another jvm?

As of Java 6 every JVM runs an MBeanServer which you can connect to via a JMX RMI connection and then invoke methods on services hosted in the remote JVM's Mbean server.

How does a java program differ when run on windows 98 and windows 2000?

Theoretically, it shouldn't, at least when running Sun's version of Java. However, Windows 2000 included Microsoft's customized version. If a program took advantage of the additional features that Microsoft added, it might not be capable of running on other platforms, including Windows 98.

Component of java virtual machine?

Class loader (with th ehelp of security manager) Run-time data area (with APIs) Execution Engine (with the help of JIT compiler)

Why constructor in Java doesn't have any return type?

The constructor of a Java class is not an ordinary method. Its purpose is not to return any value. The purpose of the constructor is to instantiate the class which it does.

Since, the purpose of a constructor is only to instantiate and initialize its class and not anything else, it does not have a return type. All it does is creates an object of that class.

What is unicode in java?

Java Supports International programming so java supports Unicode

How important is the order in which Methods are placed in Java?

If you are referring to the order in a Class definition which methods are declared, then the answer is that it makes no difference at all. Unlike other languages, where a method (or function) must be declared before others may call it, Java does not insist on this.

This is due to the dual-pass method of compiling: the first pass of a Java source file is to determine the signature of all classes and methods, while the second pass looks at the implementation of each.

Round robin scheduling program in java?

Round robin is the scheduling algorithm that is utilized by the CPU, or central processing unit, during the execution of the process. It is specifically designed for time sharing systems.

What are methods and how are these related to an object?

Methods are functions defined for a class. Therefore they are accessible for all objects based on the class (depending on visibility; for example in Java: if they are public).

What are the requirements to become a garbage collector?

You will need a class b license.Being phsyically fit is a plus.Able to lift 50 to 75 pounds.Able to do approximately 800 to 1000 homes a day.

How do you thread a bernina 1630?

I would say it impossible not to do it right!