×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Packages
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
V Jyothi
has Published
119
Answers
What is a marker or tagged interface in Java?
Java Programming
Java8
Object Oriented Programming
V Jyothi
Published on 23-Apr-2018 13:22:26
The most common use of extending interfaces occurs when the parent interface does not contain any methods. For example, the MouseListener interface in the java.awt.event package extended java.util.EventListener, which is defined as −Examplepackage java.util; public interface EventListener{ }An interface with no methods in it is referred to as a tagging ...
Read More
What are the three usages of the super keyword in Java?
Java Programming
Java8
Object Oriented Programming
V Jyothi
Published on 23-Apr-2018 13:13:51
super variable refers immediate parent class instance.super variable can invoke immediate parent class method.super() acts as immediate parent class constructor and should be the first line in child class constructor.
Java multi-line comments
Java Programming
Java8
Object Oriented Programming
V Jyothi
Published on 23-Apr-2018 11:05:05
/* is used for multi-line comments.ExampleLive Demopublic class MyFirstJavaProgram { public static void main(String[] args) { /* This is an example of multi line comment. */ System.out.println("Hello World"); } }
Java static method
Java Programming
Java8
Object Oriented Programming
V Jyothi
Published on 22-Apr-2018 23:24:59
The static keyword is used to create methods that will exist independently of any instances created for the class.Static methods do not use any instance variables of any object of the class they are defined in. Static methods take all the data from parameters and compute something from those parameters, ...
Read More
Java static block
Java Programming
Java8
Object Oriented Programming
V Jyothi
Published on 22-Apr-2018 23:20:48
static keyword can be used to create a block to be used to initialize static variables. This static block executes when classloader loads the class. A static block is invoked before main() method. You can verify the same using.ExampleLive Demopublic class Tester { static { System.out.println("In static ...
Read More
StringTokenizer class in Java
Java Programming
Java8
Object Oriented Programming
V Jyothi
Published on 22-Apr-2018 22:58:34
The StringTokenizer class of the java.util package allows an application to break a string into tokens.This class is a legacy class that is retained for compatibility reasons although its use is discouraged in new code.Its methods do not distinguish among identifiers, numbers, and quoted strings.This class methods do not even ...
Read More
Fibonacci series program in Java using recursion.
Java Programming
Java8
Object Oriented Programming
V Jyothi
Published on 22-Apr-2018 22:41:48
Following is the required program.ExampleLive Demopublic class Tester { static int n1 = 0, n2 = 1, n3 = 0; static void fibbonacci(int count) { if (count > 0) { n3 = n1 + n2; n1 = ...
Read More
Prime number program in Java.
Java Programming
Java8
Object Oriented Programming
V Jyothi
Published on 22-Apr-2018 22:32:28
Following is the required program.ExampleLive Demopublic class Tester { public static void main(String args[]) { int i, m = 0, flag = 0; int n = 41;// it is the number to be checked m = n / 2; ...
Read More
How to extend an existing JavaScript array with another array?
Javascript
Web Development
Front End Technology
V Jyothi
Published on 22-Apr-2018 22:22:16
To extend an existing array in JavaScript, use the Array.concat() method.ExampleYou can try to run the following code to extend an existing JavaScript array with another array:Live Demo<html> <head> <title>JavaScript Array push Method</title> </head> ...
Read More
What is the difference between parseInt(string) and Number(string) in JavaScript?
Javascript
Web Development
Front End Technology
V Jyothi
Published on 22-Apr-2018 22:03:37
parseInt(string)The parseInt() method parses up to the first non-digit and returns the parsed value. For example, the following returns 765:parseInt("765world")Let’s take another example. The following returns 50:parseInt(‘50px”);Number(string)Number() converts the string into a number, which can also be a float BTW.For example, the following returns NaN:Number(“765world”)The following returns NaN:Number(“50px”);
Read More
1
2
3
4
5
6
7
...
12
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout