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

Explain the concept of interfaces in java with a suitable example for the same?

interface works like an abstract class it has methods which are not defined its job is to give a general idea about the class(generic) the class can have its own functions but interface makes java program to include all the functions or methods present in the interface there are ibuilt interfaces like runnable example in threads it is runnable it makes compulsory to the class to include all the methods in interface if you dont want that then use abstract key word before class eg: interface a{void meth(int i);} class one implements a{ void meth(int i) System.out.print(i); //all other members of class// if dont use meth function it will give an error for big projects certain general functions are necessary which have to be there everywhere it gives general idea of what the program is doing

Java Which access modifier is preferred for instance variables?

Usually Private is the preferred access modifier for instance variables.

Benefits:

1. No other class can access this variable directly. They can do only through the getter/setter methods

2. Only the methods in that particular class can use this variable

Why is my server down on eclipse?

Toll Free :0800-098-8906. For BT Yahoo - United Kingdom. Is this the right phone number?

Math class is an example of which class?

It is a static class; meaning that all the methods can be accessed directly from the class name, without instantiating an object.

It is a static class; meaning that all the methods can be accessed directly from the class name, without instantiating an object.

It is a static class; meaning that all the methods can be accessed directly from the class name, without instantiating an object.

It is a static class; meaning that all the methods can be accessed directly from the class name, without instantiating an object.

Is python is pure platform independent?

Yes! The Python standard library takes considerations to what platform you are on, especially in the OS module. Now, if you are opening files (or walking the filesystem, etc) you need to take care that your filepaths are system independent, if you want that.

How do you use game controllers in java?

You can use an awesome program called Jinput, it's multi-platform too, meaning it will work on mac and Linux as well as windows, so you shouldn't have any problems. Just Google it and you should find plenty of links to download it.

How do you uninstall Java 7 version 5?

If you have windows you need to open the control panel and navigate to the uninstall programs option and look for the program, right click and than choose uninstall.This may work with mac and linux but it might not.

What does object oriented and procedural mean in programming language?

procedure oriented means program will be execte in step by step procedure,when comes to object oriented means every thin can be represents the object a step[ step procedure doesnot follow

What kinds of garbage are there?

There are amyn kinds of garbage out in the world today.

For instance,

there is:

junk

trash

and

things you throw away.

If this is not the answer you were hoping for then forget everything you have just read and ignore this and go on with living your everyday lives.

Thank you.

How many package and import statements are allowed in a java source file?

package - only one

imports - unlimited. You can have as many import statements in your class as you want.

Can an overridden method return void instead of an object?

Sure. An overridden method can return anything it wants.

Is an abstract class virtual by default?

Unlike abstract class in C++, the abstract class in C# does not have any methods defined as virtual by default. The concept of virtual are not the same between C# and C++, either. Any virtual method must be defined explicitly in C#.

Related to abstract methods - interestingly, an abstract class in C# does not have to have any abstract methods. However, the reverse, if a class need to have at least one abstract method, that class must be defined as abstract.

Which component class is also a container in JAVA?

Well, the Container extends Component, so ALL containers in Java are components. This includes classes like Panel, ScrollPane, Window, and JComponent. Plus all the various generations of subclasses of each of those containers.

What is message parsing?

Message during interprocess communication or when applications are communicating through message passing are convereted to the non human readable form for various reasons encryption - security - being one . Now the process of converting this message to human readable form and back. Parsing also involves an optimizer which generates and execution plan.

What does 'A Runtime Error Has Occurred. Do You Wish to Debug' mean?

Sadly one of the most annoying messages IE can offer as it (on the face of it) is unhelpful....

What it is trying saying is either:

The app you ran tried to read or push data that is incorrect. e.g push 'x'kb to a buffer that is only 'x'-1 in size)

or

The web page you opened tried to push or read data that was incorrect. e.g. the Web page tried to run a command your browser doesn't understand, (old JAVA or active X plugin etc etc etc) or requested something you or they (it's a two way street) don't allow to be given.

http://support.microsoft.com/kb/822521

http://support.microsoft.com/kb/226342

Which operator works like sizeof operator in Java?

Java does not have the sizeOf() operator or any operator that gives an equivalent result.

Why would you need to convert a string to a numeric data type?

For example, to interpret user input; to read data from a text file or from some other program that produces the data as a string.

For example, to interpret user input; to read data from a text file or from some other program that produces the data as a string.

For example, to interpret user input; to read data from a text file or from some other program that produces the data as a string.

For example, to interpret user input; to read data from a text file or from some other program that produces the data as a string.

Are arrays objects?

Yes. Arrays are objects in Java that store multiple variables of the same type. Arrays can hold either primitives or object references, but the array itself will always be an object on the heap, even if the array is declared to hold primitive elements. In other words, there is no such thing as a primitive array, but you can make an array of primitives

What can your program do with the exception object that a catch clause receives?

well if you read ch11 like u should, then maybe mis 331 would come easier and u would not need to google the answer

Distinguish between a parse and pass?

Parse is something related to computers.. It is a syntactic analsis format.

pass on the other hand is a computer program for estimating sample size..

Are tools like Eclipse different languages from Java?

Eclipse is not a language. It is an Integrated Development Environment (IDE). These are tools designed to allow you to easily and quickly write, run, test, and debug code for various programming languages.

There are versions of the Eclipse IDE for: Java, C/C++, and PHP.