meetdilip
Computer Addict
node js and angular js?
Node JS = Server side JS
Angular JS = Google made JS framework
node js and angular js?
did you find any reliable source for learning spring framework?Are free tutorials for it available online?Also can you suggest from where can one learn other frameworks like strutts,hibernate etc?
Also can anyone tell me what are node js and angular js?Do they have any similarity with OOPs languages like java?Is it particularly challenging to learn for beginners?
As long as all your class variables are not directly accessible from outside, your class can be considered encapsulated. As per the Javabeans standards, you must define public getter and setter methods to get or set the values of the variables. Also, you must define public methods to operate on your class variables. Your class variables should remain private at all times.Can anyone tell me what conditions should a class fulfill to be fully encapsulated?Does one need to declare all the class variables as well as methods as private in order to achieve that?Can a class in which the variables have been declared as private but the methods are public be considered encapsulated?
Did you fix the issue?? How did you fix it??i recently installed Eclipse kepler on my system-after installing it i tried launching kepler with my pre-existing workspace that was formerly used with eclipse mars-kepler suggested that i should üpgrade"my workspace to make the workspace files compatible with kepler-however finally when kepler started once the upgrade process finished none of the programs that were in my workspace were working-eclipse shows a red exclamation mark for every line of code in all programs and displays a "jni error"when i try to run them.Can anyone suggest what am i doing wrong?Are the older programs incompatible as they were created using eclipse mars?Is there any way i can fix this issue?
(pseudocode)
loop i from 1 to maxIterations
spaceCount = maxIterations - (i*2); //Since there are two stars
loop j from 1 to i
str = str + "*"
end loop
loop j from 1 to spaceCount
str = str + " " //append space
end loop
loop j from 1 to i
str = str + "*" //Ending stars
end loop
print str
end loop
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JFrame;
public class rectangle3 {
public static void main(String[] args) {
JFrame f1 = new JFrame("myrect") {
public void paint(Graphics g) {
g.setColor(Color.WHITE);
g.fillRect(0, 0, 500, 500);
g.setColor(Color.BLACK);
g.drawString("Hello", 90, 80);
}
};
f1.setSize(500, 500);
f1.setVisible(true);
f1.setDefaultCloseOperation(f1.EXIT_ON_CLOSE);
}
}
interface First{
// default method
default void show(){
System.out.println("Default method implementation of First interface.");
}
}
interface Second{
// Default method
default void show(){
System.out.println("Default method implementation of Second interface.");
}
}
// Implementation class code
class Question44 implements First, Second{
// Overriding default show method
public void show(){
// Call show() of First interface.
// Call show() of Second interface.
}
public static void main(String args[]){
Question44 q = new Question44();
q.show();
}
}
class Question44 implements First, Second {
// Overriding default show method
public void show() {
// Call show() of First interface.
First.super.show();
// Call show() of Second interface.
Second.super.show();
}
public static void main(String args[]) {
Question44 q = new Question44();
q.show();
}
}
Because the method is not static. You can only call static methods using the class name qualifier.why has the super been used in this case