Radhakrishna has Published 85 Articles

How to detect if JavaScript is disabled in a browser?

radhakrishna

radhakrishna

Updated on 12-Sep-2019 08:46:00

7K+ Views

To detect if JavaScript is disabled in a web browser, use the tag. The HTML tag is used to handle the browsers, which do recognize tag but do not support scripting. This tag is used to display an alternate text message.Here’s an example,       ... Read More

What is the difference between comments /*...*/ and /**...*/ in JavaScript?

radhakrishna

radhakrishna

Updated on 12-Sep-2019 08:35:18

630 Views

/*…*/ and /**…*/ are multi-line comments. The following is a multi line comment in JavaScript./*    * This is a multiline comment in JavaScript    * It is very similar to comments in C Programming */The following example shows how to use multi-line comments in JavaScript.     The comment ... Read More

What is the difference between Java and Core Java?

radhakrishna

radhakrishna

Updated on 30-Jul-2019 22:30:21

1K+ Views

Java is a programming language, whereas Core Java is a computing platform. Java Platform Standard Edition is Core Java, which is also called Java SE. The following are the computing following supported by Java, which also has Core Java as its part:Java SE Java Standard Edition used to develop desktop applications. ... Read More

Why can't static method be abstract in Java?

radhakrishna

radhakrishna

Updated on 30-Jul-2019 22:30:21

2K+ Views

A static method belongs to class not to object instance thus it cannot be overridden or implemented in a child class. So there is no use of making a static method as abstract.

How to avoid Java code in jsp page?

radhakrishna

radhakrishna

Updated on 30-Jul-2019 22:30:21

278 Views

You can use JSTL, JSP Standard Tag Library or EL, Expression Language to avoid scriptlets.

What is just-in-time or JIT compiler and what does it do?

radhakrishna

radhakrishna

Updated on 30-Jul-2019 22:30:20

350 Views

Java uses javac (compiler) to convert the java code to byte code (.class file).Then, JVM internally converts the bytecode to system understandable code using an interpreter in addition to it JVM.Instead of executing a piece of code, again and again, JVM identifies them as “hot spots” and compiles them using Just ... Read More

Is JIT compiler a part of JVM or run time interpreter?

radhakrishna

radhakrishna

Updated on 30-Jul-2019 22:30:20

433 Views

Java uses javac (compiler) to convert the java code to byte code (.class file). Then, JVM internally converts the byte code to system understandable code using the interpreter in addition to it JVM. Instead of executing a piece of code, again and again, JVM identifies them as “hot spots” and ... Read More

What is the root class in Java?

radhakrishna

radhakrishna

Updated on 30-Jul-2019 22:30:20

2K+ Views

The Object class of the java.lang package is the root class in Java i.e. It is the super class of every user-defined/predefined class n Java. All objects, including arrays, implement the methods of this class. The reason for this is to have common functionalities such as synchronization, garbage collection, collection ... Read More

Is constructor inherited in Java?

radhakrishna

radhakrishna

Updated on 30-Jul-2019 22:30:20

405 Views

No, constructors are not inherited in Java.

Can we overload the main method in Java?

radhakrishna

radhakrishna

Updated on 30-Jul-2019 22:30:20

3K+ Views

Yes, we can overload the main method in Java, but When we execute the class JVM starts execution with public static void main(String[] args) method. Example Live Demo public class Sample{ public static void main(){ System.out.println("This is the overloaded ... Read More

Advertisements