×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Tutorix
Login
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
Q/A
Library
eBooks
Courses
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
Syed Javed
has Published
53
Answers
How to access methods of an array of objects in JavaScript?
Javascript
Web Development
Front End Technology
Syed Javed
Published on 22-Apr-2018 17:57:14
To access methods of an array of objects in JavaScript, you can try to run the following code, wherein the method is accessed:ExampleLive Demo<html> <head> <title>JavaScript Array join Method</title> </head> <body> ...
Read More
How to add new array elements at the beginning of an array in JavaScript?
Javascript
Web Development
Front End Technology
Syed Javed
Published on 22-Apr-2018 17:54:07
JavaScript array unshift() method adds one or more elements to the beginning of an array and returns the new length of the array.ExampleYou can try to run the following code to learn how to add new array elements at the beginning of an array:Live Demo<html> <head> ...
Read More
How to compare arrays in JavaScript?
Javascript
Web Development
Front End Technology
Syed Javed
Published on 22-Apr-2018 17:51:31
To compare arrays in JavaScript, try to run the following code. The matched elements from both the arrays get displayed here:ExampleLive Demo<html> <body> <script> var arr1 ...
Read More
What is an array in Java?
Java 8
Object Oriented Programming
Programming
Syed Javed
Published on 22-Apr-2018 17:45:43
An array is a data structure/container/object that stores a fixed-size sequential collection of elements of the same type. The size/length of the array is determined at the time of creation. The position of the elements in the array is called as index or subscript. The first element of the array ...
Read More
Can a method have the same name as the class?
Java Programming
Java8
Object Oriented Programming
Syed Javed
Published on 22-Apr-2018 17:42:00
Yes, you can write a method in Java with method name same as class name. But it is not suggestable because of the following reasons − Using upper case letter at the starting of the name of the method violates the coding conventions of Java for writing a methods ...
Read More
What is the character wrapper class and its methods in Java?
Java Programming
Java8
Object Oriented Programming
Syed Javed
Published on 22-Apr-2018 17:37:18
The Character class of the java.lang package wraps a value of the primitive datatype char. It offers a number of useful class (i.e., static) methods for manipulating characters. You can create a Character object with the Character constructor. Character ch = new Character('a'); Following are the notable methods ...
Read More
What is the object class in Java?
Java Programming
Java8
Object Oriented Programming
Syed Javed
Published on 22-Apr-2018 17:21:40
The java.lang.Object class is the root of the class hierarchy. Every class has Object as a superclass. All objects, including arrays, implement the methods of this class. Example Following example demonstrates the usage of the Object class. Here we are getting the name of the current class using the getClass() ...
Read More
What are the properties of an array object in JavaScript?
Javascript
Web Development
Front End Technology
Syed Javed
Published on 18-Feb-2018 05:58:48
The Array object lets you store multiple values in a single variable. It stores a fixed-size sequential collection of elements of the same type.The following is the list of the properties of the Array object −Sr.NoProperty & Description1constructorReturns a reference to the array function that created the object.2indexThe property represents ...
Read More
How to create an array of integers in JavaScript?
Javascript
Web Development
Front End Technology
Syed Javed
Published on 18-Feb-2018 05:24:27
To create an array of integers in JavaScript, try the following −var rank = [1, 2, 3, 4];You can also use the new keyword to create array of integers in JavaScript −var rank = new Array(1, 2, 3, 4);The Array parameter is a list of strings or integers. When you specify ...
Read More
How can we set PRIMARY KEY on multiple columns of an existing MySQL table?
MySQL
MySQLi
Database
Syed Javed
Published on 18-Feb-2018 04:20:44
We can set PRIMARY KEY constraint on multiple columns of an existing table by using ADD keyword along with ALTER TABLE statement.ExampleSuppose we have a table ‘Room_allotment’ as follows −mysql> Create table Room_allotment(Id Int, Name Varchar(20), RoomNo Int); Query OK, 0 rows affected (0.20 sec) mysql> Describe Room_allotment; +--------+-------------+------+-----+---------+-------+ ...
Read More
Previous
1
2
3
4
5
6
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout