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

What are the applications of servlets?

Servlet is a Server side component, a servlet is a small pluggable extension to the server and servlets are used to extend the functionality of the java enabled server.

Why type compability is required in assigninig values in java?

For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.

For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.

For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.

For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.

Can i download free C programming book in Hindi language?

i want to download or search matter of computer related topic in Hindi language. how can i get it?

Can you interchange the term public and static in java?

The two are different, and independent from one another. A variable can be public, static, both public and static, or neither.

Do you have to be a high school graduate to be an accountant?

Not only do you need a high school diploma, but you need a college degree, and preferably, to have passed the CPA exam for your state.

This key word causes an object to be created in memory?

To instantiate a object, we use the new keyword in Java, which creates an object in memory.

How do you create a login page by using swing in Java?

In order to create a log in page using swing in Java one must write programming code. The code to do this is about two pages long. If one is not familiar with programming code, it would be best to hire a programmer to do this.

How do you find out not equals string in java?

Remember that strings are objects. You can use the String.equals method to determine equality, and use the ! (not) operator to test for inequality.

public static boolean notEquals(String str1, String str2) {

return !str1.equals(str2);

}

Overload Trip Class - What does it really mean?

Quite often we here of applications in which the motor protection/overload relay 'trips' during motor starting. The remedial action taken by many when faced with this problem is to select and install a replacement overload relay, generally one that provides a higher 'Trip Class' setting, for example, Trip Class 20 in lieu of the standard Trip Class 10.

Note: The appears to be a general misconception in industry that Overload Trip Class relates directly to the starting time of a machine. This is not the case.

All due care must be taken when selecting a protection relay offering higher Trip Class, as this can result in under protection and subsequent failure of the motor.

To select an overload relay with a more suitable trip class, you must in the first instance obtain data relating to the motor's thermal withstand capabilities. That is, you need to know how many seconds (from cold condition) the motor can the sustain Locked Rotor Current before it is compromised.

This information is readily available from most leading manufacturers of motors and is generally provided in one of two formats.

a) Specific values for Locked Rotor Current and maximum Locked Rotor Time (from 'cold condition' ) are given.

b) A Motor Thermal Withstand Curve is provided.

With this information available to you, you can refer to the tables given in IEC 60947 to identify the most appropriate Overload Trip Class. This is defined as the one that provides a trip curve as close as possible to but below the overload curve of the motor. Adopting this process will ensure nuisance tripping is minimised and that the motor is adequately protected at all times.

Note: If the above processes are adopted but the trip conditions continue, there are 4 possible causes.

1. The motor (and overload relay) are not given sufficient time to cool between starts.

2. Assuming reduced voltage start (star/delta, auto-transformer, primary resistance, soft start etc., the motor is not delivering torque sufficient to accelerate the connected load to speed. That is the starting current and starting time under RVS conditions exceeds that permissible by the overload curve.

3. A more advanced protection strategy such as motor thermal modelling may be required. Motor thermal modelling allows the user to 'match' the curves of the protection device to the connected motor. This is of particular advantage when the motors thermal withstand capabilities and the start condition (starting current and starting time) fall between two curves defined by standard overload trip classes.

4. The motor is simply too small for the application.

Put simply, the most appropriate protection strategy is the one that allows the motor to be fully utilised without nuisance tripping or fear of motor burn-out.

Will JVM execute static methods by default like static variables in java?

No. Static methods are invoked by using the name of the class instead of the name of an instance of a class. Example:

public class Test {

public static void methodA {

// do something ...

}

public void methodB {

// do something else ...

}

}

A program could use methodA by simply calling it using the class name:

// call the static method

Test.methodA();

To use methodB(), a program would have to first create an instance of the class then call the method:

// call the non-static method

Test t = new Test();

t.methodB();

Note that you can call methodA from the instance:

// call the static method

Test t = new Test();

t.methodA();

However, this is considered bad practice. And you cannot call methodB at all using the class name:

// can't do this - compile error

Test.methodB();

How many bytes does a Java VM have?

A JVM, or Java Virtual Machine, creates the environment in which programs that run using Java bytecode are processed. It does not itself possess bytes or bytecode.

Is it true In a binary search if the search fails to find the item on the first attempt then there are 999 elements left to search in an array of 1000 elements?

False. In a binary search, if the search fails on the first trial of an array of 1000 elements, then there are only nine more elements left to search.

Does adding the static keyword to the declaration of these variables in your program change their size?

No. The static keyword only specifies the way a method is declared, used and handled by the JVM and the other classes and does not modify the size it occupies in the memory.

What happen if an exception occur and an exception handler cant be found in java?

The Exception will be thrown/displayed in the console and on screen (If it is a UI based application) and the system will exit. The JVM does not continue execution if any exception is encountered during execution

How do you achieve plateform indepent in java?

Java is designed from the ground up for platform independence. All the programmer has to do is to abstain from using features that are platform-specific.

Compare java arithmetic and logic operators with c arithmetic and logical operators?

They are very similar,but when we do logic operators there are still some differences.In c or c plus plus ,logic true can be expressed as'true' or '0',but in java,true is just 'true'.If you gave a zero,it will treat it as type of integer ,and so as false.

What is web application and enterprise application?

gdg Web applications are stored on a server and delivered to users over the Internet. A Web application is usually a three-tier structure, comprising a User Service tier (allowing user access to the application), a Business Service tier (allowing the user to carry out complex activities) and a Data Service tier (which allows data storage and retrieval).

An application that conforms to the Java 2 Platform Enterprise Edition specification.

publib.boulder.ibm.com/infocenter/ws51help/topic/com.ibm.websphere.exp.doc/info/exp/glossary.html Web applications are stored on a server and delivered to users over the Internet. A Web application is usually a three-tier structure, comprising a User Service tier (allowing user access to the application), a Business Service tier (allowing the user to carry out complex activities) and a Data Service tier (which allows data storage and retrieval).

An application that conforms to the Java 2 Platform Enterprise Edition specification.

publib.boulder.ibm.com/infocenter/ws51help/topic/com.ibm.websphere.exp.doc/info/exp/glossary.html Web applications are stored on a server and delivered to users over the Internet. A Web application is usually a three-tier structure, comprising a User Service tier (allowing user access to the application), a Business Service tier (allowing the user to carry out complex activities) and a Data Service tier (which allows data storage and retrieval).

An application that conforms to the Java 2 Platform Enterprise Edition specification.

publib.boulder.ibm.com/infocenter/ws51help/topic/com.ibm.websphere.exp.doc/info/exp/glossary.html

What is an object is computer?

Objects are key to understanding object-orientedtechnology. Look around right now and you'll find many examples of real-world objects: your dog, your desk, your television set, your bicycle. Real-world objects share two characteristics: They all have state and behavior. Dogs have state (name, color, breed, hungry) and behavior (barking, fetching, wagging tail). Bicycles also have state (current gear, current pedal cadence, current speed) and behavior (changing gear, changing pedal cadence, applying brakes). Identifying the state and behavior for real-world objects is a great way to begin thinking in terms of object-oriented programming.

Why java applet is executed faster than java script?

The java applet is in the java language and is run local to your computer, java script is in the language java script, this can be run local to server or computer. Java and java script are to different languages that run two different ways.

How do you convert an int to object in java?

Java has auto-boxing introduced in Java 5 and converts ints to Integer objects as needed.

Or you can explictly call Integer.valueOf(int) or new Integer(int) to return an Integer object with the value of the primitive int argument.

Example:

int i = 14; // i = 14
Integer a = Integer.valueOf(i); // a = 14Integer b = new Integer(i); // b = 14
or simply
Integer c = i;

Functional and structural relation between nabard and rrb?

According to NABARD ACT 1982 NABARD was set up to provide refinance to banks for all kind of agricultural investment and small scale industries and other allied activities.Erlier RBI use to the operations of Agricultural Refinance and Development Corporation for RRB. Now NABARD has taken over all these functions.