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 source code analysis tools for?

There are a lot of source doe analysis tools including NET, Multi-language, ABAP, Opa, Java and ActionScript. Most code analysis tools are used to increase the performance of a programs and for checking the code of a program.

How do you convert a scanner to string in java?

I assume that your scanner is not scanning a string already, so if you are scanning an int then you can do: for the example you scanner variable is x .... x.intparseString();

What is the connection of an array in data structure?

Both are aggregates of elements of the same type. The main difference is that an array allocates elements contiguously thus there is no need to maintain links between the elements; each can be addressed by its offset from the start of the array. A structure, however, allocates elements non-contiguously, and must maintain links (pointers or references) within the elements in order to navigate from one element to the next.

How do you write while andfor loop to get sum of1to100 integer?

int i, sum;

/* example using while */

sum = 0;

i = 1;

while (i <= 100) {

sum += i;

++i;

}

/* example using for */

sum = 0;

for (i = 1; i <= 100; ++i) sum += i;

Which programming language is superior to the other Java or C-plusplus and Based on what aspect is your answer true?

It all comes down to what you use it for. C++ can be faster and tends to use less RAM as it accesses hardware directly (but is not always and Java has caught up quite a bit over they years when it comes to speed and is currently working on its memory usage). On the other hand, Java can be made to run on any platform (windows, Linux, Mac, BSD, ...) that has a JVM, which means that the code does not require any modification, making production and maintanenance faster and cheaper. Also, Java is a lot more unlikely to suffer from memory leaks as it was created with the shortcomings of C++ in mind. It will often clean up for you if you make a mess while C++ will stand by pretending that its nose is bleeding. Then you get to keep the pieces. That being said, C++ is a better choice for multimedia, which has always been badly neglected on the Java side. However, C++ has only a fraction of the many frameworks and tools that have been written to facilitate writing web applications in Java. And so on. As I said, it all comes down to what you have in mind.

How deadlock is achieved in java?

A Deadlock is a situation of indefinite waiting where the system is stuck at a particular point and would do nothing useful.

For example Method A is waiting for B's input while B is waiting for C's input and C in turn is waiting for A's input. Here all the 3 methods would continue to wait because they are waiting on one another and the system is stuck.

A deadlock usually occurs while using threads. Threads can lock objects on which they are processing and when multiple threads are waiting for the same object a Dead lock may occur.

The use of the synchronize keyword can be used to avoid such deadlock situations.

What are the Access data types and how they are used?

In Access and in databases in general each field in a database table is of a certain data type. The data type determines what type of data a field can hold. A field of the text data type can hold text, a field of the number data type can hold numbers and a field of the data/time data type can hold date and time values.

Access actively checks what type of data is entered into a field and Access will disallow the entry of data into a field that doesn't conform to the field's data type. Access won't allow you to put text into a field of the Number data type, for example.

So, data types are a way to restrict the entry of data into a field. Internally, the database uses different strategies for the storage and retrieval of different data types.

Run java codes in c?

You cannot unless you wrote some kind of translator. The only exception is NET which allows to run codes written in different languages using the same coding environment.

Benefits in studying master of computer applications?

There are benefits in almost every career you choose. Ultimately, it depends on your interest. If you like programming, then Software Engineering is the perfect choice for you. Plus, the average wage of a software engineer is quite high and they are currently in high demand throughout US and Canada.

What mean by deprecated in java programming?

It means that the function is old (and often poorly designed) so should not be used anymore. It is kept there for backwards compatibility.

Inheritance vs instantiation in Java?

Inheritance is simply when you get properties and methods from a superclass, whereas instantiation is actually allocating an object in memory based on your class.

Do Samsung Corby Pro actually supports java?

On user manual it is written that it supports JAVA files but a lot of complaints by customers shows that JAVA application as a whole is not supported by Corby Pro.

How do you design forms in object oriented database?

A database is about storing data, not about creating forms. You would create the forms in some programming language - NOT something directly related to the database server - than have your forms, or rather your program in general, connect to the database.

What is java bin?

JavaBin, a Norwegian Java User Group, is an independent, non-profit organisation. Its object is to promote Java expertise among its members, their companies and in the market. javaBin has its central governing group in Oslo, Norway, and have regional groups in Bergen, Kristiansand, Stavangerand Trondheim.

As of May 2011, javaBin has more than 2,000 members representing a wide range of Norwegian companies.

The Java User Group in Norway was first set up in the summer of 1996. It faded out shortly afterwards, until a number of prime movers took the initiative to hold a founders' meeting on 23 April 1998.

What are the advantages of JFC?

JFC stands for Java Foundation Classes. They are a set of GUI components and services which simplify the development and deployment of commercial-quality desktop and internet/intranet applications.

Are binary strings used in Java?

No if there was then java wouldn't have over 4 billion down loads

How is encapsulation linked with access modifiers?

a class can control what information or data can be accessible by other classes

access modifiers sets usability of the methods defined in the class by other classes in either the same package or the other,

this is how acces modifiers encapsulates the variables or the methods from being used .

like there are 3 access modifiers--

1.protected-can be used in the same class or class which has inherited it .

2.default-can be used in the same package,but no acces to other classes.

3.public-can be used by classes in different package.

What does the name java mean?

JAVA is a oop programming language which is platfrom independent.
Previous name of java is ook.
It is derived by Sun Microsystem in USA.
From some offical conflict it converted to java.
Sun engineers everyday go to a coffeshop which is near their office .During taking coffe
they decided to change its name from 'ook'.
Suddenly they think that its hot coffe.
So the actual java name in USA is 'hot cofee'

What is difference between an instance variable and a class variable?

An instance variable is typically associated with an object instance of the class whereas class variable is not associated with any object instance. Static variables are referred to as class variables while non-static regular variables are called instance variables. Simply put, you will have as many instances of the instance variable as there are object instances. i.e., if there are 10 instances of an object, you will have 10 instances of that instance variable as well. But, there will be only one instance of the static or class variable.

Instance variables are accessed as follows:

objname.variableName;

Class variables are accessed as follows:

ClassName.variableName;

What does it mean to have a string split in java?

To have a string split in Java means that a string array, containing substrings (can be delimited by elements of a specified string or Unicode character array), is returned.

Everything about the m-1 garand?

Scott Duff has a book that is very good.

Everything is a lot to ask for on the computer, so I suggest you follow the above advice and read the book, but here are a few highlights. Like most inventors, John Garand was somewhat eccentric. The Garand rifle was originally chambered for the .276 Pederson cartridge, but Doug MacArthur was Chief of Ordinance in the 30's and he decreed (wisely in my opinion) that all US rifle-caliber weapons be 30-06, reducing the M-1 Garand's capacity from ten to eight rounds. The M1903 sling was also compatible with the Garand, and the US ammo pouch accepted the 8-round Garand clips as easily as the 5-round M1903 clips. The M-1 Garand was adopted by the US Army in 1936 but produced in small numbers. In 1941 the Garand rifle beat the Johnson rifle and the M1903 as the USMC rifle. After the US entered the war, production could not keep up with demand, and an M-1 Garand was not in the hands of every American rifleman until 1943-44, although the M1903 continued for sniping and grenade-launching. The Germans had a semi-automatic rifle called the Gewehr 43 which was a good semi-automatic weapon, but simply was not as reliable and robust as the M1 (due to being made of crude parts and machining from mass supply shortages) nor was it as easly to produce or mantain in the field as the Garand rifle, so it was used mostly as a sniping rifle instead of a battle rifle, even then, it was very rare to encounter since it was never mass produced. The M-1 rifle fought again in Korea with the US and other armies, and it was replaced by the the M-14 in 1956. The US M-14 and the Italian BM59 are near-copies of the M-1 Garand in operation, but firing the smaller .308 Winchester cartridge.

Class hierarchy is a fundamental concept of object oriented programs explain what this term means with reference to inheritance abstraction and instantiation?

Class hierarchy is a term used in Java. It is used for identifying the inheritance hierarchy or the parent class relationships Ex: Public class B extends C { } Public class A extends B { } Here if we take the class hierarchy for class 'A' it would be A