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.
Total questions 21800
ID1191957189
removed Which bodies of water travels between the Indonesian islands of Java and Sumatra from Java Programming 26 May 2012 22:00
DingoBot (supervisor) [154]
automatically flagged Write a program to show the applet life cycle 26 May 2012 17:52
ID0456144844
wrote the first answer to Write a program to show the applet life cycle 26 May 2012 17:52
Bala1000 [0]
made this change to the answer of What is the import statement for java 26 May 2012 16:43
Java supports exception handling by its try catch constructs. Exceptions are conditions which the JVM or applications developed...
Popularity: 270 • Tools: Recategorize
JPanel is a general purpose container used to organize and manage the groups of related components. It is a light weight...
Popularity: 226 • Tools: Recategorize
JRE includes (JVM ) java virtual machine and some other library files. That runs a java application. JVM - understand the...
Popularity: 218 • Tools: Recategorize
Use concatenation. When adding strings, the + sign concatinates. Eg: String one = "This is a strin"; one = one +'g'; ...
Popularity: 151 • Tools: Recategorize
j2ee is the old naming of the java enterprise edition, in the early history java was called simply java afterward sun created a...
Popularity: 145 • Tools: Recategorize
import java.io.*; class ShopReceipt { protected static void main()throws IOException { BufferedReader in=new...
Popularity: 142 • Tools: Recategorize
import java.io.*;class kaprekar { public static void main(String args[])throws IOException { BufferedReader br=new...
Popularity: 142 • Tools: Recategorize
'Main' is not at all associated with the return type. Specifying a function as main means that the function is to be executed...
Popularity: 141 • Tools: Recategorize
Bubble sort will be able to sort the items lexicographically, if you first assign the strings a relative value. The way strcmp in...
Popularity: 138 • Tools: Recategorize
He is the father of the Java programming language.
Popularity: 136 • Tools: Recategorize
The advantage of using a platform independent language is that a program designed using such platform is independent on the...
Popularity: 135 • Tools: Recategorize
s
Popularity: 135 • Tools: Recategorize
Data hiding is one of the important aspects of a class. Data hiding means to hide the members of the class and providing the...
Popularity: 134 • Tools: Recategorize
It can have as many as you want. It allows you to catch very specific exceptions.
Popularity: 134 • Tools: Recategorize
An Array is a data type that stores multiple values in one variable. It can be thought of as a bunch of values that are related...
Popularity: 134 • Tools: Recategorize
The rules of accessibility are governed by the access modifiers. An Access Modifier is a key word in java that determines what...
Popularity: 134 • Tools: Recategorize
It means that you have tried to use a method which doesn't exist.
Popularity: 133 • Tools: Recategorize
A. Pretest LoopPage 169Tony Gaddis: Textbook for Programming Logic & Design
Popularity: 133 • Tools: Recategorize
Among the primitive data types - float and double are the largest. Data TypeBits UsedMinimum ValueMaximum Valuebyte8-2727 -...
Popularity: 133 • Tools: Recategorize
• Instance variables and objects live on the heap. • Local variables live on the stack. Let's take a look at a Java...
Popularity: 133 • Tools: Recategorize
I'll answer assuming you're using Windows based machines. The absolute easiest way is to buy a Router or Switch from a company...
Popularity: 132 • Tools: Recategorize
I think the reason this question has gone unanswered is it is not clear on what you want to do. So I'm going to guess that you...
Popularity: 131 • Tools: Recategorize
Java is pure object oriented programming language than c++, it uses the concepts of Classes, Objects, Inheritance, Polymorphism....
Popularity: 131 • Tools: Recategorize
an Object is an instance of the Class for ex: Integer i = new Integer (1); i is an object of the Class Integer. of courses...
Popularity: 131 • Tools: Recategorize
Languages like C, Pascal, Basic do not use classes, polymorphism, etc, they promote functional style of programming. Languages...
Popularity: 131 • Tools: Recategorize
Classes in Java inherit constructors from their parent classes. If you don't explicitly define a parent class, then Object is...
Popularity: 131 • Tools: Recategorize
That one is called "Java Virtual Machine".
Popularity: 130 • Tools: Recategorize
Yes. If you simply write: x = new SomeClass(); y = x; will make the variable y refer to the same object that variable x is...
Popularity: 128 • Tools: Recategorize
Jar files are basically zip files, but they are supposed to store java classes, they have nothing to do with C.
Popularity: 128 • Tools: Recategorize
Yes. Overridden methods have the same signature whereas Overloaded methods have a different signature
Popularity: 128 • Tools: Recategorize
GUI stands for Graphical User Interface. The web browser in which you are viewing this website too can be considered a GUI
Popularity: 128 • Tools: Recategorize
A default constructor is the one with no arguments.Heres a sampleclass c{int a,b;c() //Constructor 1{a=2;b=1;}c(int x, int y)...
Popularity: 127 • Tools: Recategorize
This depends on your handset. Certain devices are java-enabled, older ones are not.
Popularity: 127 • Tools: Recategorize
//call this method inputing the string you want to testprivate void palindromeTest(String input){String output = """+input+"" ";...
Popularity: 126 • Tools: Recategorize
The important features of Java are the ones that relate to the object oriented concepts like: a. Inheritance b. ...
Popularity: 126 • Tools: Recategorize
Yes, since it can only play in some computers and not all computers can read it. Every Java application needs a minimum system...
Popularity: 126 • Tools: Recategorize
In object oriented programming language, it is possible to override classes. and the advantage over this is we can just show the...
Popularity: 125 • Tools: Recategorize
Below is a simple example- the function of the code below is to print out the words "Hello" "world" to the screen. public class...
Popularity: 125 • Tools: Recategorize
No. An abstract method must be overriden in an subclass. If the method is final then it can't be edited.
Popularity: 125 • Tools: Recategorize
Because that is how Java file naming conventions are designed. The rules for naming files in Java are as follows: • There can...
Popularity: 125 • Tools: Recategorize
Tokenizing is the process of taking big pieces of source data, breaking them into little pieces, and storing the little pieces in...
Popularity: 125 • Tools: Recategorize
The static modifier tells the system that this particular variable belongs to the class and does not belong to any specific...
Popularity: 123 • Tools: Recategorize
Two methods can have the same name provided their signature is different. Ex: public int add(int a, int b){ ... } public int...
Popularity: 122 • Tools: Recategorize
Yes. There is no specific order in which the compiler expects methods to be present. As long as the method is inside the class it...
Popularity: 122 • Tools: Recategorize
A reference variable is used to refer to (or access) an object. A reference variable is declared to be of a specific type and...
Popularity: 122 • Tools: Recategorize
Remember that the Vector class is a subclass of AbstractList. Also remember that the Collections class has an efficient sorting...
Popularity: 121 • Tools: Recategorize
Over abstraction, in computer programming terms, means that you use inheritance too often in your code. If you look for any two...
Popularity: 120 • Tools: Recategorize
Because, they are not methods to have a return type. The constructor by default creates an object of the class and that's all. It...
Popularity: 120 • Tools: Recategorize
A class file is a compiled .java file and cannot be executed without jdk or java. They are often executed with .bat files in...
Popularity: 120 • Tools: Recategorize
This is a way to organize files when a project consists of multiple modules. It also helps resolve naming conflicts when...
Popularity: 119 • Tools: Recategorize
Double is more precise than float. The 4 bytes saved on a float are usually not very relevant. However, if you need to save large...
Popularity: 119 • Tools: Recategorize
An Access Modifier is a key word in java that determines what level of access or visibility a particular java variable/method or...
Popularity: 118 • Tools: Recategorize
Yes, in some way it's similar.
Popularity: 118 • Tools: Recategorize
a class has only two members data member and member functions
Popularity: 117 • Tools: Recategorize
The exact same way you instantiate a class from any of the various Java libraries: by using the 'new' keyword. i.e MyClass A =...
Popularity: 117 • Tools: Recategorize
You cannot override a method inside the same class. If you do that, it is called Overloading. Experienced java programmers can...
Popularity: 115 • Tools: Recategorize
final is a keyword.it can be used for three posibilities. they are ->we can assign the variable as final. to declaring the...
Popularity: 115 • Tools: Recategorize
A (java) class file was not be made to be opened and modified by hand for the users. A class file is the resulting byte code of...
Popularity: 114 • Tools: Recategorize
Imagine you want to save the state of one or more objects. If Java didn't have serialization, you'd have to use one of the I/O...
Popularity: 114 • Tools: Recategorize
C# and Java have many similaries. If you learn one, you won't have much of a problem learning the other.
Popularity: 113 • Tools: Recategorize
method invoking refers to the action in which we call a Java method from within another java method or class. Method invocation...
Popularity: 110 • Tools: Recategorize
Implicit casting is done automatically by the compiler and virtual machine. Explicit casting is needed to convert types of data...
Popularity: 108 • Tools: Recategorize
It is possible in JDK 1.5 and above. In JDK 1.4, you also cast the Float value into float value by using casting. For exampe in...
Popularity: 106 • Tools: Recategorize
Core Java has to do with the basic package of Java objects that are typically used for general desktop applications. These...
Popularity: 105 • Tools: Recategorize
1. Single Inheritance A Scenario where one class is inheriting/extending the behavior of just one super class. Ex: public class...
Popularity: 104 • Tools: Recategorize
You are talking about the implementation point view of Abstract class and the interface. Let's go. 1. Interface helps Multiple...
Popularity: 103 • Tools: Recategorize
Abstract is not a datatype but a modifier. Abstract can be used in 2 places:Methods: If a method is termed abstract it means that...
Popularity: 99 • Tools: Recategorize
It is used to convert the value of one datatype into a value of another datatype. Example- Integer.parseInt(in.readLine); It...
Popularity: 97 • Tools: Recategorize
to initialise a class..
Popularity: 97 • Tools: Recategorize
Java is a OOP language and it is not a pure Object Based Programming Language. Many languages are Object Oriented. There are...
Popularity: 95 • Tools: Recategorize
"Overloading" a function means that you have multiple functions with the same name, but different signatures. The signature of a...
Popularity: 94 • Tools: Recategorize
Data abstraction provides the skeleton or templates. That is it has no actual implementation.
Popularity: 93 • Tools: Recategorize
As there are more than one JVM implementations, there is not a single language used to implement them all. Off the top of my...
Popularity: 92 • Tools: Recategorize
NO full form of java. just it stands for hot and aromatic coffee.It is just an abstract name that the devlopers gave.
Popularity: 89 • Tools: Recategorize
Inheritance is an object oriented feature supported by Java wherein the features of one Java class can be inherited/made...
Popularity: 87 • Tools: Recategorize
I will assume that you mean in a broad spectrum in this answer. Java is intended to be a cross-platform full programming...
Popularity: 87 • Tools: Recategorize
First of all, let's assume that by "lint" you mean "init." There are two methods called at the beginning of an applet's...
Popularity: 86 • Tools: Recategorize
sometimes there are situations where the program is vary long which can make error debugging a long process so java provides a...
Popularity: 85 • Tools: Recategorize
By using Depth First Search or Breadth First search Tree traversal algorithm we can print data in Binary search tree.
Popularity: 82 • Tools: Recategorize
not an actual code line you need to redefine the script
Popularity: 82 • Tools: Recategorize
Yes - In every machine that has the Java Runtime Environment (JRE) installed, the JVM will be available.
Popularity: 81 • Tools: Recategorize
String tokenizer is a utility feature in Java language that is used to split a string into multiple pieces based on a delimiter....
Popularity: 79 • Tools: Recategorize
Multilevel Inheritance A Scenario where one class is inheriting/extending the bahavior of another class which in turn is...
Popularity: 77 • Tools: Recategorize
Depends on the language. For C, no you don't. You can type blank brackets (int Arr[]) when declaring the array, or you can just...
Popularity: 77 • Tools: Recategorize
taking an introductory Computer Science Class, this program that I wrote recently may help you. Basically it asks the user to...
Popularity: 76 • Tools: Recategorize
Java uses a code-compiler, which does not create a machine-code, like normal Windows programs, but a byte-code, which the Java...
Popularity: 74 • Tools: Recategorize
my self is a computer teacher,from my point of view ,some project topics are: BANKINGONLINE QUIZBILL Preperationticket...
Popularity: 74 • Tools: Recategorize
The static keyword associated with a method or a variable in java specifies that the entity belongs to the class and not any...
Popularity: 73 • Tools: Recategorize
Follow the backslash with another backslash: System.out.println("\\ \" \\"); will display \ " \ on the screen.
Popularity: 72 • Tools: Recategorize
The speed difference is not usually significant, but the slight performance advantage goes to Servlets because, JSPs get...
Popularity: 72 • Tools: Recategorize
Implement this method: public static boolean isDivisible(int a, int b) { if(a % b == 0) { return true; } else { return...
Popularity: 71 • Tools: Recategorize
An Access Modifier is a key word in java that determines what level of access or visibility a particular java variable/method or...
Popularity: 70 • Tools: Recategorize
VB.NET is used for e-banking.It is the language in which all the options are used just by tool box that is at the right hand side...
Popularity: 70 • Tools: Recategorize
A subclass in Java is a class that inherits features from a parent class. class Car { public void goForADrive() { ...
Popularity: 70 • Tools: Recategorize
Java is an object-oriented computer programming language that is used for application as well as system software development. It...
Popularity: 69 • Tools: Recategorize
No. Once a thread is stopped you cannot restart it.
Popularity: 69 • Tools: Recategorize
We can't instantiate both interfaces and abstract classes.The only one difference between them is that an interface can't contain...
Popularity: 68 • Tools: Recategorize