Object Oriented Programming Articles

Page 582 of 589

What are the platforms that support Java programming language?

varma
varma
Updated on 30-Jul-2019 1K+ Views

Java runs on operating systems such as Windows, Mac OS, and the various versions of UNIX/Linux like HP-Unix, Sun Solaris, Redhat Linux, Ubuntu, CentOS, etc.

Read More

What is meant by Java being a dynamic language?

Giri Raju
Giri Raju
Updated on 30-Jul-2019 3K+ Views

Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry an extensive amount of run-time information that can be used to verify and resolve accesses to objects at run-time.

Read More

What is Java API and what is its use?

mkotla
mkotla
Updated on 30-Jul-2019 7K+ Views

The full form of API is Application Programming Interface. It is a document which gives you the list of all the packages, classes, and interfaces, along with their fields and methods.Using these API’s, the programmer can know how to use the methods, fields, classes, interfaces provided by Java libraries.

Read More

Are identifiers hello and Hello same in Java?

varun
varun
Updated on 30-Jul-2019 399 Views

Identifiers in Java are case-sensitive, therefore, hello and Hello are considered as two different identifiers.

Read More

How do I write method names in Java?

varma
varma
Updated on 30-Jul-2019 3K+ Views

While writing a method name we should follow the camel case i.e. first letter of the first word should be small and the first letters of the remaining (later) words should be capital. Example public class Test { public void sampleMethod() { System.out.println("This is sample method"); } public void demoMethod() { System.out.println("This is demo method"); } public static void main(String args[]) { Test obj = new Test(); obj.sample(); obj.demo(); } } Output This is sample method This is demo method

Read More

Are there inline functions in Java?

vanithasree
vanithasree
Updated on 30-Jul-2019 4K+ Views

If a function is inline, the compiler places a copy of the code of that function at each point where the function is called at compile time. Any change to an inline function could require all clients of the function to be recompiled because compiler would need to replace all the code once again otherwise it will continue with old functionality. No, Java does not provide inline functions it is typically done by the JVM at execution time.

Read More

Are 'this' and 'super' keywords in Java?

Prabhas
Prabhas
Updated on 30-Jul-2019 453 Views

Yes, this and super are keywords in Java. Where ‘this’ is used as a reference of the current object and, ‘super’ is used as a reference to the superclass object.

Read More

Is main a keyword in Java?

varun
varun
Updated on 30-Jul-2019 1K+ Views

No, main is not a keyword in Java.

Read More

Is null a keyword in Java?

usharani
usharani
Updated on 30-Jul-2019 664 Views

No, null is not a keyword. Though they seem like keywords null, true and, false are considered as literals in Java.

Read More

How (where) are the elements of an array stored in memory?

Priya Pallavi
Priya Pallavi
Updated on 30-Jul-2019 2K+ Views

In Java, arrays are objects, therefore just like other objects arrays are stored in heap area. An array store primitive data types or reference (to derived data) types Just like objects the variable of the array holds the reference to the array.

Read More
Showing 5811–5820 of 5,881 articles
« Prev 1 580 581 582 583 584 589 Next »
Advertisements