×
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
Sravani S
has Published
104
Answers
Constructor overloading in Java
Java Programming
Java8
Object Oriented Programming
Sravani S
Published on 22-Apr-2018 23:40:46
Yes! Java supports constructor overloading. In constructor loading, we create multiple constructors with the same name but with different parameters types or with different no of parameters.ExampleLive Demopublic class Tester { private String message; public Tester(){ message = "Hello World!"; } ...
Read More
Difference between constructor and method in Java
Java Programming
Object Oriented Programming
Java8
Sravani S
Published on 22-Apr-2018 23:36:25
Following are the difference between constructor and method.Constructor is used to initialize an object whereas method is used to exhibits functionality of an object.Constructors are invoked implicitly whereas methods are invoked explicitly.Constructor does not return any value where the method may/may not return a value.In case constructor is not present, ...
Read More
Java static keyword
Java Programming
Java8
Object Oriented Programming
Sravani S
Published on 22-Apr-2018 23:29:30
The static keyword is used tocreate variables that will exist independently of any instances created for the class. Only one copy of the static variable exists regardless of the number of instances of the class. Static variables are also known as class variables. Local variables cannot be declared static.create methods ...
Read More
How can we generate Strong numbers in Python?
Python
Programming
Server Side Programming
Sravani S
Published on 20-Apr-2018 12:09:26
To print Strong Numbers, let's first look at the definition of it. It is a number that is the sum of factorials of its own digits. For example, 145 is a Strong number. First, create a function to calculate factorial:def fact(num): def factorial(n): num = 1 while ...
Read More
How to create a triangle using Python for loop?
Python
Programming
Sravani S
Published on 20-Apr-2018 10:16:32
There are multiple variations of generating triangle using numbers in Python. Let's look at the 2 simplest forms:for i in range(5): for j in range(i + 1): print(j + 1, end="") print("")This will give the output:1 12 123 1234 12345You can also print numbers continuously ...
Read More
How do I loop through a JSON file with multiple keys/sub-keys in Python?
Python
Programming
Sravani S
Published on 19-Apr-2018 17:09:21
You can parse JSON files using the json module in Python. This module parses the json and puts it in a dict. You can then get the values from this like a normal dict. For example, if you have a json with the following content −{ "id": "file", ...
Read More
How can we do Python operator overloading with multiple operands?
Python
Programming
Sravani S
Published on 19-Apr-2018 15:26:34
You can do Python operator overloading with multiple operands just like you would do it for binary operators. For example, if you want to overload the + operator for a class, you'd do the following −Exampleclass Complex(object): def __init__(self, real, imag): self.real = real ...
Read More
Set the font size with CSS
Javascript
Web Development
Front End Scripts
Sravani S
Published on 13-Apr-2018 14:18:42
The font-size property is used to increase or decrease the size of a font. The font-size property is used to control the size of fonts. Possible values could be xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, size in pixels or in %.<html> <head> </head> <body> ...
Read More
Usage of background-color property in CSS
Javascript
Web Development
Front End Scripts
Sravani S
Published on 13-Apr-2018 12:11:13
The background-color property is used to set the background color of an element.ExampleYou can try to run the following code to learn how to work with the background-color property:<html> <head> </head> <body> <p style = "background-color:blue;"> This text has a blue ...
Read More
HTM5 checkValidity() method
Javascript
Web Development
Front End Scripts
Sravani S
Published on 11-Apr-2018 17:49:53
The HTML5 checkValidity() works in Google Chrome and Opera as well. This works as well:<!DOCTYPE html> <html> <body> <style> .valid { color: #0B7866; } .invalid { color: #0B6877; } </style> <div id="result"></div> ...
Read More
1
2
3
4
5
6
7
...
11
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout