Java Articles

Page 443 of 450

Accessing an SAP endpoint in apex code

Ali
Ali
Updated on 30-Jul-2019 255 Views

I faced a similar issue earlier but it was because of a bug in JAVA security package (refer link for more details)http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7044060I just got updated myself to latest OpenJDK7 and it solved my issue. I think you can try the same and check if it helps.

Read More

What are the prerequisites for learning Java?

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

In fact, you can directly start learning Java without any prior knowledge of programming language. But, the syntax in Java is similar to the syntax of the C programming language, therefore, Knowing C language helps to get hold of Java quickly. Having introduced to object-oriented principles before starting Java, also helps in the understanding of the language so, having an idea on object-oriented languages such as C++ also helps. In short, if you know C or C++ it will be a little bit easier to cope with Java technology.

Read More

What is meant by Java being platform-independent?

vanithasree
vanithasree
Updated on 30-Jul-2019 447 Views

When you compile Java programs using javac compiler it generates bytecode. We need to execute this bytecode using JVM (Java Virtual machine) Then, JVM translates the Java bytecode to machine understandable code.You can download JVM’s (comes along with JDK or JRE) suitable to your operating system and, once you write a Java program you can run it on any system using JVM.

Read More

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 391 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 450 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
Showing 4421–4430 of 4,495 articles
« Prev 1 441 442 443 444 445 450 Next »
Advertisements