What does this compiler error mean ' ' in java?
Simply, the error that your compiler catches is called compiler error.
Doesn't matter if you are in Eclipse, NetBeans or Intellij IDEA, all these IDE's are very smart. They can detect if you made any any mistakes in your program.
Common compiler errors are-
-When you try and access a variable that is out of scope
-When you forget to give a semicolon.
-When you will try to use a reserved keyword like - return.
-Any syntax error that your compiler might find suspicious, will cause compiler to throw an error.
Can constructor takes an object of its own class as a Parameter?
Of course they can, It is a little weird, but there are not any type of restriction about it. You can have something like this:
public class Fun{
public Fun(){
//do nothing
}
public Fun(Fun otherFun){
//do somethingFun with otherFun object
}
}
and then in a boring day do this:
//More code goes here
public static void main (String[] args){
Fun fun1 = new Fun(); // Create a Fun object with the default constructor
Fun fun2 = new Fun(fun1); // Create a Fun object with the constructor that expect a Fun object
}
Can a try block have nested try blocks?
Yes, a try-catch block can be nested. It is placed around the code that might generate an exception.
How do automatic transfer switches work?
ATS's constantly monitor the primary and secondary sources of power. When the primary source of power goes out, and the secondary is available, the unit automatically switches to the secondary power source. Some ATS's switch back to primary using the same logic, and some have to be manually switched back to primary. There are 'smart' switches that wait until the primary power source is available for a certain length of time (i.e. 2 minutes) until switching back, to avoid connecting to an unstable or intermittent utility source.
How efficiently to compare 2 HashSets in Java without to use foreach cycle?
If you want to compare two HashSet objects, you have very few choices. The obvious choice is to use the .equals method built into the implementation. If that doesn't work for you, then you have to use the Iterator returned by the .iterator method, which is functionally the same as using the for-each loop.
What is object-oriented programming languages?
Programming real world entities as classes that have data members and member functions to operate on those data members, with rich functionalities such as abstraction, inheritance and polymorphism is called object oriented programming.
An object is nothing but an instance of a class.
abstraction refers to hiding the complicated details of a program while presenting a simplified interface to the user thus enabling him to use the functionalities without bothering about how they were implemented internally.
inheritance: where one class can inherit properties of another class thus helping in reuse of code.
polymorphism: meaning one name many functions, like area() which could be used to calculate area of a circle or triangle or square on the basis of parameters passed to it.
What is byvalue for java keywords?
There is no such keyword in Java.
In general: whether an argument is passed by value or by reference is determined by whether the argument is a primitive (by value) or an Object (by reference).
In reality, it's a little more complicated. It seems to be that the actual reference you send as an argument will not change, but the data it refers to will.
// This method will not cause a change in the original value.
void changeArg(int[] ints) {
ints = null;
}
// This method will.
void changeArg(int[] ints) {
ints[0] = 0;
}
What is the size of object in programming language?
That would depend on the language; but usually, that should depend mainly on the amount of data stored in the object. For example, the programmer may decide an object needs an array of 10,000 ints, of 4 bytes each; that would require 40,000 bytes, plus some small overhead for the object itself.
That would depend on the language; but usually, that should depend mainly on the amount of data stored in the object. For example, the programmer may decide an object needs an array of 10,000 ints, of 4 bytes each; that would require 40,000 bytes, plus some small overhead for the object itself.
That would depend on the language; but usually, that should depend mainly on the amount of data stored in the object. For example, the programmer may decide an object needs an array of 10,000 ints, of 4 bytes each; that would require 40,000 bytes, plus some small overhead for the object itself.
That would depend on the language; but usually, that should depend mainly on the amount of data stored in the object. For example, the programmer may decide an object needs an array of 10,000 ints, of 4 bytes each; that would require 40,000 bytes, plus some small overhead for the object itself.
How many bytes does long and short data type reserve?
sizeof (long) and sizeof (short)
often 4 or 8 for long, and 2 for short
What do you mean by JFC in java?
The Java Foundation Classes (JFC) are a comprehensive set of GUI components and services which dramatically simplify the development and deployment of commercial-quality desktop and Internet/Intranet applications.
Sundeep
Differentiate between multiprocessing and multiprogramming?
Multiprocessing means the computer can do multiple processes parallel of each other (at the same time) with no performance degradation. Multiprogramming is an application that can be used to interface with different programming languages (java, C++, etc)
What is the difference between a class A felony and a class C?
Class A is the most serious and has more severe penalties.
Major difference between java and cpp?
CPP typically stands for the C PreProcessor, which does macro expansion on C source code.
What I suspect you want to know are the differences between C++ and Java. See the links below for more information on that topic.
Why we can't create object for Container class using new keyword?
It is an abstract class so you can't instantiate it directly, but have to use a subclass instead.
synchronized
What is java cryptography architecture?
The Java Cryptography Architecture (JCA) is a framework for working with cryptography using the Java programming language. It forms part of the Java security API, and was first introduced in JDK 1.1 in the java.security package.
http://en.wikipedia.org/wiki/Java_Cryptography_Architecture
Which institutes are best for java specialization in Hyderabad?
For professional and Advanced Industry Certification,Java, PRO Java, ACE Java courses contact Talentsprint.
With our top-class faculty and resources we guarantee to deliver the best classroom training. Our placement drive is a gateway to opportunities in the top multinational companies. Our training centers are spread across Hyderabad, Bangalore, Chennai and Coimbatore.
Address:
Head OfficeBlock A, IIIT Campus,
Gachibowli, Hyderabad 500032
Recruitment Toll Free: 1800-102-9006
Corporate Board: 040-424-39901 Ameerpet
Near Satyam Theatre, Opp HDFC bank
Ameerpet, Hyderabad 500016
Phone: +91-40-4018-0566, +91-40-4010-0077
What is the difference between static function and global static function?
'global static'?! There is no such thing.