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 is reference data types in java?

A reference variable is used to refer to (or access) an object. A reference variable is declared to be of a specific type and that type can never be changed.

Ex:

ArrayList lst = new ArrayList();

The above line creates a reference variable lst which refers to an ArrayList object

Why does java not support multiple inheritence?

The superclass of all the classes in Java is Object,So any class we created is a instance of Object. Assume there is a class Father and Class Uncle,Now the class called child will have to inherit the features of father and Uncle which inturn will have some common features.So the child class would not be sure of whether to inherit the common feature from Father or uncle. This is known as the diamond problem - http://en.wikipedia.org/wiki/Diamond_problem

There is nothing like virtual in Java

What types of analyses use case study data?

Case studies are used for the following analyses: industry analysis; product/service analysis; financial analysis; and management analysis.

What are the main lubricants used in forging?

Lubricants used are oil, graphite, water and synthetic lubricants.

Can we use SQL for java language?

No. SQL stands for Structured Query Language and that in itself is a language and it is totally different from Java.

However, you can use SQL queries inside Java code with the help of JDBC (Java DataBase Connectivity). But the Java compiler cannot understand/compile standalone SQL syntax unless it is used as part of JDBC.

What is the input and output to a Java interpreter?

The input is source code (MyClass.java) and the output is bytecode (MyClass.class).
Generally, Java compilers receive as input .java source code files, and output .class binary files which are then executed by the Java Virtual Machine (JVM) executable.

Some Java compilers output binaries in machine code that can be directly executed.
The input is a source file with the java extension. (i.e. HelloWorld.java) The output is the byte code file with the class extension. (i.e. HelloWorld.class)
Input:

1. Most compilers take as input the source program which is in a particular programming language.

2. Compilation Switches ( special arguments that tell the nature of compilation and structure of target code).

3. Supporting Files (Library Files) such files help in the execution and translation of a program

Output:

1. Program List file.

2. Target Code. Target code is the equivalent of the source code but in another language

What are Awt Components?

AWT stands for Abstract window tootlkit . Abstract window Toolkit provides a standard application programming interface for writing graphical user interfaces in java.

Java source code to find prime number?

/* Program to Find whether number is Prime or Not. */

class PrimeNo{

public static void main(String args[]){

int num = Integer.parseInt(br.readLine());

int flag=0;

for(int i=2;i

Does Java use your graphics card?

Well actually it depends. If you plan on making graphics with java, then yes. Otherwise no. Hoping this comes to use.

What is a multivalue attribute relating to database?

A multivalue attribute is the practice of maintaining more than a single value in a database column. Lets say for example you want to know the hobbies for a client. The proper way to handle this is to maintain the data in a one - to - many child table. Another way is a multivalue field. This in effect is a text field (varchar, etc) that will contain one or more values, separated by a comma (as an example).

This of course is NOT the way to go and will cause performance problems in parsing the information and make many reports and logical use of the data very difficult (but possible).

Uses of this keyword in java?

this keyword is used to avoid complication between instance variable and local varible.
we identify instance variable by using this keyword(e.g: this.a=a;)

Which program uses actionscript as its programming language?

Adobe Flash uses actionscript. It is the main programming language for flash.

What is the Jasper Reports tool?

JasperReports is a open source reporting tool which can be embedded into a Java application. It can be used in Java enabled applications including Java EE or web applications.

What is database environment?

The database environment refers to the components inside a database. Some of these include hardware, software, data, as well as the procedures.

What kind of file contain java source code?

'.java' files contain java source code. One can access these files on windows by using 'notepad'.

What is ragged array in java?

is an array with more than one dimension each dimension has different size

ex:

10 20 30

11 22 22 33 44

77 88

Encapsulation data we can inherit out side the class?

Yes. If the variables are public yes they can be inherited. If they are private then they cannot be inherited. But to access these private variables you can have accessor methods that are public and can be accessed everywhere.

Why you neet interface in java?

When you need the benefits of multiple inheritance while avoiding the DDD (Deadly Diamond of Death). Java doesn't allow multiple inheritance anyway.

Is it possible while developing any software by using java can you manage database?

Yes. In Java this is done through the JDBC classes.

Yes. In Java this is done through the JDBC classes.

Yes. In Java this is done through the JDBC classes.

Yes. In Java this is done through the JDBC classes.

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.